Skip to content

Commit fb6af5d

Browse files
committed
chore: add label to skip detection and run all tests
1 parent 883b9ef commit fb6af5d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/actions/crates-reporter/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,17 @@ runs:
5353
env:
5454
EVENT_NAME: ${{ github.event_name }}
5555
PR_BASE_REF: ${{ github.base_ref }}
56+
PR_LABELS: ${{ toJSON(github.event.pull_request.labels.*.name) }}
5657
run: |
5758
if [[ "$EVENT_NAME" != "pull_request" ]]; then
5859
echo "status=skipped" >> $GITHUB_OUTPUT
5960
exit 0
6061
fi
62+
if echo "$PR_LABELS" | jq -e 'any(. == "run-all-tests")' > /dev/null 2>&1; then
63+
echo "Label 'run-all-tests' detected, skipping change detection"
64+
echo "status=skipped" >> $GITHUB_OUTPUT
65+
exit 0
66+
fi
6167
if ! RUST_LOG=debug ${{ github.action_path }}/../target/release/crates-reporter $PR_BASE_REF; then
6268
echo "status=skipped" >> $GITHUB_OUTPUT
6369
fi

0 commit comments

Comments
 (0)