Skip to content

Commit 57fca15

Browse files
committed
small cleanups
1 parent 7a80902 commit 57fca15

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/comment-command.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,18 @@ jobs:
2323
# token: ${{ secrets.COMMENT_COMMAND_PAT_TOKEN }}
2424
- name: Checkout PR
2525
run: |
26-
gh pr checkout $NUMBER
26+
gh pr checkout ${{ github.event.issue.number }}
2727
env:
2828
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
NUMBER: ${{ github.event.issue.number }}
3029
- name: Fetch patches
3130
id: fetch-patches
3231
# Fails workflow if artifact not found
3332
uses: dawidd6/action-download-artifact@v7
3433
with:
3534
workflow: lint-format.yml
3635
pr: ${{ github.event.issue.number }}
36+
name: "fixes$"
37+
name_is_regexp: true
3738
workflow_conclusion: "failure" # Format failure -> patches available
3839
if_no_artifact_found: warn
3940
allow_forks: false
@@ -43,7 +44,6 @@ jobs:
4344
echo "found-artifacts=${{ steps.fetch-patches.outputs.artifacts &&
4445
contains(fromJSON(steps.fetch-patches.outputs.artifacts).*.name, 'javaformat fixes') &&
4546
contains(fromJSON(steps.fetch-patches.outputs.artifacts).*.name, 'wpiformat fixes') }}" >> "$GITHUB_OUTPUT"
46-
- run: echo ${{ toJSON(steps.check-found-artifacts.outputs.found-artifacts) }}
4747
- name: Apply patch
4848
if: steps.check-found-artifacts.outputs.found-artifacts
4949
run: |
@@ -79,10 +79,9 @@ jobs:
7979
# token: ${{ secrets.COMMENT_COMMAND_PAT_TOKEN }}
8080
- name: Checkout PR
8181
run: |
82-
gh pr checkout $NUMBER
82+
gh pr checkout ${{ github.event.issue.number }}
8383
env:
8484
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # "${{ secrets.COMMENT_COMMAND_PAT_TOKEN }}"
85-
NUMBER: ${{ github.event.issue.number }}
8685
- name: Fetch patches
8786
id: fetch-patches
8887
uses: dawidd6/action-download-artifact@v7

0 commit comments

Comments
 (0)