Skip to content

Commit 48c7757

Browse files
sync gh actions (#1691)
1 parent 35d8601 commit 48c7757

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/analyze.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- main # change this if your default branch is named differently
88
workflow_dispatch:
99

10+
permissions: {}
11+
1012
jobs:
1113
event_type:
1214
runs-on: ubuntu-latest
@@ -37,7 +39,7 @@ jobs:
3739
- name: Restore cached node_modules
3840
uses: actions/cache@v4
3941
with:
40-
path: "**/node_modules"
42+
path: '**/node_modules'
4143
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
4244

4345
- name: Install deps
@@ -69,8 +71,8 @@ jobs:
6971
name: bundle_analysis.json
7072

7173
- name: Download base branch bundle stats
72-
uses: dawidd6/action-download-artifact@v3
73-
if: success()
74+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
75+
if: success() && github.event.number
7476
with:
7577
workflow: analyze.yml
7678
branch: ${{ github.event.pull_request.base.ref || 'main' }}

.github/workflows/analyze_comment.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Analyze Bundle (Comment)
22

33
on:
44
workflow_run:
5-
workflows: ["Analyze Bundle"]
5+
workflows: ['Analyze Bundle']
66
types:
77
- completed
88

@@ -26,7 +26,7 @@ jobs:
2626
2727
- name: Download base branch bundle stats
2828
if: github.event.workflow_run.conclusion == 'success' && steps.get-type.outputs.event-type == 'pull_request'
29-
uses: dawidd6/action-download-artifact@v3
29+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
3030
with:
3131
workflow: analyze.yml
3232
run_id: ${{ github.event.workflow_run.id }}
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: Download PR number
3737
if: github.event.workflow_run.conclusion == 'success' && steps.get-type.outputs.event-type == 'pull_request'
38-
uses: dawidd6/action-download-artifact@v3
38+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
3939
with:
4040
workflow: analyze.yml
4141
run_id: ${{ github.event.workflow_run.id }}
@@ -61,7 +61,7 @@ jobs:
6161
echo "pr-number=$pr_number" >> $GITHUB_OUTPUT
6262
6363
- name: Comment
64-
uses: marocchino/sticky-pull-request-comment@v2
64+
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728
6565
with:
6666
header: next-bundle-analysis
6767
number: ${{ steps.get-comment-body.outputs.pr-number }}

0 commit comments

Comments
 (0)