Skip to content

Commit f20acc2

Browse files
committed
chore: upgrade to latest workflows
1 parent 0bcfc8c commit f20acc2

File tree

5 files changed

+45
-14
lines changed

5 files changed

+45
-14
lines changed

.github/workflows/docker.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: docker
22
run-name: ${{ inputs.run-name }}
33

4+
env:
5+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
6+
47
on:
58
workflow_dispatch:
69
inputs:
@@ -52,13 +55,13 @@ jobs:
5255
steps:
5356
# CHECKOUT REPOSITORY
5457
- name: init / checkout
55-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
58+
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6.0.2
5659
with:
5760
ref: ${{ github.ref_name }}
5861

5962
- name: matrix / setup list
6063
id: setup-matrix
61-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
64+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
6265
with:
6366
script: |
6467
const { existsSync, readFileSync } = require('node:fs');
@@ -152,15 +155,15 @@ jobs:
152155
# ╚═════════════════════════════════════════════════════╝
153156
# CHECKOUT ALL DEPTHS (ALL TAGS)
154157
- name: init / checkout
155-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
158+
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6.0.2
156159
with:
157160
ref: ${{ github.ref_name }}
158161
fetch-depth: 0
159162

160163
# SETUP ENVIRONMENT VARIABLES AND INPUTS
161164
- name: init / setup environment
162165
id: setup-environment
163-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
166+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
164167
with:
165168
script: |
166169
const { existsSync, readFileSync } = require('node:fs');
@@ -228,6 +231,20 @@ jobs:
228231
merge_tags:[],
229232
};
230233
234+
try{
235+
const response = await fetch('https://raw.githubusercontent.com/11notes/static/refs/heads/master/src/semver/latest.json');
236+
if(!response.ok){
237+
throw new Error(`error fetching OpenSSL version: ${response.status}`);
238+
}
239+
const result = await response.json();
240+
for(const dep in result){
241+
docker.app[`${dep}_version`] = `${result[dep]}`;
242+
core.info(`setting APP_${String(dep).toUpperCase()}_VERSION to ${result[dep]}`);
243+
}
244+
}catch(e){
245+
core.warning(e);
246+
}
247+
231248
docker.cache.name = `${docker.image.name}:${docker.image.prefix}buildcache${docker.image.suffix}`;
232249
docker.cache.grype = `${docker.cache.registry}${docker.image.name}:${docker.image.prefix}grype${docker.image.suffix}`;
233250
docker.app.prefix = docker.image.prefix;
@@ -600,7 +617,7 @@ jobs:
600617
# ╚═════════════════════════════════════════════════════╝
601618
# CHECKOUT ALL DEPTHS (ALL TAGS)
602619
- name: init / checkout
603-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
620+
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6.0.2
604621
with:
605622
ref: master
606623
fetch-depth: 0

.github/workflows/org.build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: org.build
22

3+
env:
4+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
5+
36
on:
47
workflow_dispatch:
58
inputs:
@@ -29,7 +32,7 @@ jobs:
2932
# check if additional builds need to happen
3033
- name: etc to environment variable
3134
if: github.event.inputs.etc != 'null'
32-
uses: actions/github-script@62c3794a3eb6788d9a2a72b219504732c0c9a298
35+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
3336
with:
3437
script: |
3538
const { Buffer } = require('node:buffer');

.github/workflows/org.readme.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: org.readme
22

3+
env:
4+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
5+
36
on:
47
workflow_dispatch:
58

.github/workflows/org.update.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: org.update
22

3+
env:
4+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
5+
36
on:
47
workflow_dispatch:
58
inputs:
@@ -27,19 +30,19 @@ jobs:
2730

2831
steps:
2932
- name: init / checkout
30-
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
33+
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6.0.2
3134
with:
3235
ref: 'master'
3336
fetch-depth: 0
3437

3538
- name: update / setup node
36-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
39+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
3740
with:
38-
node-version: '20'
41+
node-version: '24'
3942
- run: npm i semver
4043

4144
- name: update / compare latest with current version
42-
uses: actions/github-script@62c3794a3eb6788d9a2a72b219504732c0c9a298
45+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
4346
with:
4447
script: |
4548
(async()=>{
@@ -125,8 +128,10 @@ jobs:
125128
build.args = {
126129
version_build:job.inputs.build,
127130
};
131+
job.json.build.args.version_build = job.inputs.build;
128132
}else if(job.inputs?.build?.args){
129133
build.args = job.inputs.build.args;
134+
job.json.build.args.version_build = job.inputs.build.args;
130135
}
131136
132137
// update .json
@@ -180,13 +185,13 @@ jobs:
180185
uses: the-actions-org/workflow-dispatch@3133c5d135c7dbe4be4f9793872b6ef331b53bc7
181186
with:
182187
workflow: docker.yml
183-
wait-for-completion: false
188+
wait-for-completion: true
184189
token: "${{ secrets.REPOSITORY_TOKEN }}"
185190
inputs: '{ "release":"${{ github.event.inputs.release }}", "readme":"${{ github.event.inputs.readme }}", "run-name":"update v${{ env.LATEST_VERSION }}", "etc":"${{ env.WORKFLOW_UPDATE_BASE64JSON }}" }'
186191
ref: "v${{ env.LATEST_TAG }}"
187192

188193
- name: update / build container image for unraid
189-
if: env.WORKFLOW_UPDATE_UNRAID == 'true' && steps.checkout.outcome == 'success' && steps.build.outcome == 'success'
194+
if: env.WORKFLOW_UPDATE_UNRAID == 'true' && steps.build.outputs.workflow-conclusion == 'success'
190195
uses: the-actions-org/workflow-dispatch@3133c5d135c7dbe4be4f9793872b6ef331b53bc7
191196
with:
192197
workflow: docker.yml
@@ -196,7 +201,7 @@ jobs:
196201
ref: "v${{ env.LATEST_TAG }}"
197202

198203
- name: update / build container image for nobody
199-
if: env.WORKFLOW_UPDATE_NOBODY == 'true' && steps.checkout.outcome == 'success' && steps.build.outcome == 'success'
204+
if: env.WORKFLOW_UPDATE_NOBODY == 'true' && steps.build.outputs.workflow-conclusion == 'success'
200205
uses: the-actions-org/workflow-dispatch@3133c5d135c7dbe4be4f9793872b6ef331b53bc7
201206
with:
202207
workflow: docker.yml

.github/workflows/org.version.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: org.version
22
run-name: org.version ${{ inputs.version }}
33

4+
env:
5+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
6+
47
on:
58
workflow_dispatch:
69
inputs:
@@ -17,7 +20,7 @@ jobs:
1720
runs-on: ubuntu-latest
1821
steps:
1922
- name: setup config
20-
uses: actions/github-script@62c3794a3eb6788d9a2a72b219504732c0c9a298
23+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2124
with:
2225
script: |
2326
const { Buffer } = require('node:buffer');

0 commit comments

Comments
 (0)