Skip to content

Commit 51a3a3c

Browse files
committed
Adding id
1 parent 718c424 commit 51a3a3c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/autofix-reminder.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Check existing labels
34+
id: label_check
3435
shell: bash
3536
run: |
3637
gh api "repos/${GITHUB_REPOSITORY}/issues/${PR_NUMBER}/labels" | jq -r '.[].name' > labels.txt
3738
3839
if grep -q -x -e "${REQUIRES_AUTOFIX_LABEL}" labels.txt || grep -q -x -e "${DOES_NOT_REQUIRE_AUTOFIX_LABEL}" labels.txt; then
39-
echo "should_continue=false" >> $GITHUB_OUTPUT
4040
echo "Stopping workflow due to label presence."
41+
echo "should_continue=false" >> $GITHUB_OUTPUT
4142
else
43+
echo "Add $REQUIRES_AUTOFIX_LABEL label."
4244
echo "should_continue=true" >> $GITHUB_OUTPUT
4345
fi
4446
@@ -48,4 +50,5 @@ jobs:
4850

4951
- name: Comment on PR
5052
if: steps.label_check.outputs.should_continue == 'true'
53+
id: label_check
5154
run: gh api "repos/${GITHUB_REPOSITORY}/issues/${PR_NUMBER}/comments" -X POST --field body="This pull request updates `.ql`, `.qll`, or `.qhelp` files, Please validate that autofixes generated based on these changes are valid. See [the documentation](https://github.com/github/codeql-team/blob/main/docs/best-practices/validating-autofix-for-query-changes.md) (internal access required). If autofix validation is not required, please add the label '${DOES_NOT_REQUIRE_AUTOFIX_LABEL}' to this pull request."

0 commit comments

Comments
 (0)