Skip to content

Commit 5180fdf

Browse files
committed
refactor: update ci dependencies and commit/pr audit report using the bot
1 parent e3749c8 commit 5180fdf

File tree

4 files changed

+32
-16
lines changed

4 files changed

+32
-16
lines changed

.github/workflows/audits.yml

+26-10
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Checkout
2929
uses: actions/checkout@v3
3030
- name: Set up node
31-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3232
with:
3333
node-version-file: .nvmrc
3434
cache: yarn
@@ -43,7 +43,7 @@ jobs:
4343
- name: Summary
4444
run: cat implementations/${{ matrix.workspace }}/README.md >> $GITHUB_STEP_SUMMARY
4545
- name: Upload audit report
46-
uses: actions/upload-artifact@v3
46+
uses: actions/upload-artifact@v4
4747
with:
4848
name: audit-reports
4949
# > If multiple paths are provided as input, the least common ancestor of all the search paths will be used as the root directory of the artifact.
@@ -76,14 +76,14 @@ jobs:
7676
- name: Set up docker buildx
7777
uses: docker/setup-buildx-action@v2
7878
- name: Set up node
79-
uses: actions/setup-node@v3
79+
uses: actions/setup-node@v4
8080
with:
8181
node-version-file: .nvmrc
8282
cache: yarn
8383
- name: Install
8484
run: yarn install --immutable
8585
- name: Bake
86-
uses: docker/bake-action@v2
86+
uses: docker/bake-action@v6
8787
with:
8888
workdir: implementations/${{ matrix.workspace }}
8989
load: true # load image into docker, otherwise `docker compose up` will rebuild
@@ -97,7 +97,7 @@ jobs:
9797
- name: Summary
9898
run: cat implementations/${{ matrix.workspace }}/README.md >> $GITHUB_STEP_SUMMARY
9999
- name: Upload audit report
100-
uses: actions/upload-artifact@v3
100+
uses: actions/upload-artifact@v4
101101
with:
102102
name: audit-reports
103103
# > If multiple paths are provided as input, the least common ancestor of all the search paths will be used as the root directory of the artifact.
@@ -124,7 +124,7 @@ jobs:
124124
- name: Checkout
125125
uses: actions/checkout@v3
126126
- name: Set up node
127-
uses: actions/setup-node@v3
127+
uses: actions/setup-node@v4
128128
with:
129129
node-version-file: .nvmrc
130130
cache: yarn
@@ -135,7 +135,7 @@ jobs:
135135
- name: Summary
136136
run: cat implementations/${{ matrix.workspace.name }}/README.md >> $GITHUB_STEP_SUMMARY
137137
- name: Upload audit report
138-
uses: actions/upload-artifact@v3
138+
uses: actions/upload-artifact@v4
139139
with:
140140
name: audit-reports
141141
# > If multiple paths are provided as input, the least common ancestor of all the search paths will be used as the root directory of the artifact.
@@ -158,16 +158,32 @@ jobs:
158158
steps:
159159
- name: Checkout
160160
uses: actions/checkout@v3
161+
with:
162+
token: ${{secrets.BOT_GITHUB_TOKEN}}
161163
- name: Download audit reports
162-
uses: actions/download-artifact@v3
164+
uses: actions/download-artifact@v4
163165
with:
164166
name: audit-reports
165167
- name: Render servers table
166168
run: node scripts/render-servers-table.mjs
169+
- name: Diff
170+
run: git diff --pretty
171+
- name: Commit
172+
if: github.ref != 'refs/heads/main'
173+
uses: stefanzweifel/git-auto-commit-action@v5
174+
with:
175+
commit_message: 'docs(implementations): audit report'
176+
commit_user_name: theguild-bot
177+
commit_user_email: [email protected]
178+
commit_author: theguild-bot <[email protected]> # dont use the actor as an author
167179
- name: Create PR
180+
if: github.ref == 'refs/heads/main'
168181
uses: peter-evans/create-pull-request@v7
169182
with:
170-
branch: audit-report/${{ github.ref_name }}
183+
token: ${{secrets.BOT_GITHUB_TOKEN}}
184+
branch: audit-report
171185
title: Audit Report
172-
body: New audit report available.
186+
body: New audit report available
173187
commit-message: 'docs(implementations): audit report'
188+
committer: theguild-bot <[email protected]>
189+
author: theguild-bot <[email protected]> # dont use the actor as an author

.github/workflows/build-and-release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Checkout
1111
uses: actions/checkout@v3
1212
- name: Set up node
13-
uses: actions/setup-node@v3
13+
uses: actions/setup-node@v4
1414
with:
1515
node-version-file: .nvmrc
1616
cache: yarn
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
fetch-depth: 0 # necessary for correct changelog
3737
- name: Set up node
38-
uses: actions/setup-node@v3
38+
uses: actions/setup-node@v4
3939
with:
4040
node-version-file: .nvmrc
4141
cache: yarn
@@ -61,7 +61,7 @@ jobs:
6161
token: ${{ secrets.GH_TOKEN }}
6262
fetch-depth: 0 # necessary for correct CHANGELOGS
6363
- name: Set up node
64-
uses: actions/setup-node@v3
64+
uses: actions/setup-node@v4
6565
with:
6666
node-version-file: .nvmrc
6767
cache: yarn

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Checkout
2626
uses: actions/checkout@v3
2727
- name: Set up Node
28-
uses: actions/setup-node@v3
28+
uses: actions/setup-node@v4
2929
with:
3030
node-version-file: .nvmrc
3131
cache: yarn
@@ -42,7 +42,7 @@ jobs:
4242
- name: Checkout
4343
uses: actions/checkout@v3
4444
- name: Set up Node
45-
uses: actions/setup-node@v3
45+
uses: actions/setup-node@v4
4646
with:
4747
node-version-file: .nvmrc
4848
cache: yarn

.github/workflows/website.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v3
1616
- name: Set up node
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v4
1818
with:
1919
node-version-file: .nvmrc
2020
cache: yarn

0 commit comments

Comments
 (0)