We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54a03c8 commit 2e51c1aCopy full SHA for 2e51c1a
1 file changed
.github/workflows/cli-test.yml
@@ -116,7 +116,10 @@ jobs:
116
needs: [cli-test]
117
if: failure() && github.ref == 'refs/heads/main'
118
permissions:
119
+ contents: read
120
issues: write
121
+ env:
122
+ GH_TOKEN: ${{ github.token }}
123
steps:
124
- name: Create GitHub issue
125
run: |
@@ -141,7 +144,7 @@ jobs:
141
144
142
145
COMMENT_FILE="comment.md"
143
146
RUN_URL=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
- printf 'CLI test [%s](%s) failed on ref `%s`' "$RUN_ID" "$RUN_URL" "$RUN_REF" > "$COMMENT_FILE"
147
+ printf 'CLI test [%s](%s) failed on ref `%s`' "$GITHUB_RUN_ID" "$RUN_URL" "$GITHUB_REF" > "$COMMENT_FILE"
148
149
# `gh issue create` returns an issue URL, and `gh issue list | cut -f 1` returns an issue number.
150
# Both are accepted here.
0 commit comments