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
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
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 : bot@the-guild.dev
178+ commit_author : theguild-bot <bot@the-guild.dev> # 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 <bot@the-guild.dev>
189+ author : theguild-bot <bot@the-guild.dev> # dont use the actor as an author
0 commit comments