Skip to content

Commit 3ee403c

Browse files
committed
fix: workflows
1 parent fe8eda6 commit 3ee403c

2 files changed

Lines changed: 8 additions & 22 deletions

File tree

.github/workflows/pr-comment-upload-and-comment.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,17 @@ jobs:
2626
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
2727
runs-on: ubuntu-latest
2828
steps:
29+
- name: Checkout comment action
30+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
31+
with:
32+
persist-credentials: false
2933
- name: Download Artifact
3034
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
3135
with:
3236
name: plots
3337
path: artifacts
3438
github-token: ${{ secrets.GITHUB_TOKEN }}
3539
run-id: ${{ github.event.inputs.run_id || github.event.workflow_run.id }}
36-
- name: Extract downloaded artifact archive
37-
run: |
38-
shopt -s nullglob
39-
for archive in artifacts/*.zip; do
40-
unzip -o "${archive}" -d artifacts
41-
rm "${archive}"
42-
done
43-
- name: Checkout comment action
44-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
45-
with:
46-
persist-credentials: false
4740
- name: Read PR number
4841
id: pr
4942
env:

.github/workflows/validate-model-json-comment.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,17 @@ jobs:
2424
name: Comment on model.json validation
2525
runs-on: ubuntu-latest
2626
steps:
27+
- name: Checkout comment action
28+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
29+
with:
30+
persist-credentials: false
2731
- name: Download validation result
2832
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
2933
with:
3034
name: model-json-validation
3135
path: artifacts
3236
github-token: ${{ secrets.GITHUB_TOKEN }}
3337
run-id: ${{ github.event.inputs.run_id || github.event.workflow_run.id }}
34-
- name: Extract downloaded artifact archive
35-
run: |
36-
shopt -s nullglob
37-
for archive in artifacts/*.zip; do
38-
unzip -o "${archive}" -d artifacts
39-
rm "${archive}"
40-
done
41-
- name: Checkout comment action
42-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
43-
with:
44-
persist-credentials: false
4538
- name: Read validation result
4639
id: validation-result
4740
run: |

0 commit comments

Comments
 (0)