Skip to content

Commit 84ff1f5

Browse files
committed
Fix build scripts for v3
1 parent 954939a commit 84ff1f5

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@ jobs:
2828

2929
- name: Get the version
3030
id: get_version
31-
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
31+
run: |
32+
if [[ $GITHUB_REF == refs/tags/* ]]; then
33+
VERSION=${GITHUB_REF#refs/tags/}
34+
elif [[ $GITHUB_REF == refs/heads/* ]]; then
35+
VERSION=${GITHUB_REF#refs/heads/}
36+
else
37+
VERSION=$GITHUB_REF
38+
fi
39+
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
3240
3341
# See https://stackoverflow.com/questions/70312490/github-actions-runner-environment-doesnt-build-for-arm-images
3442
- name: Set up QEMU to run ARM images (that were built with Depot)
@@ -39,7 +47,7 @@ jobs:
3947
- name: Configure AWS credentials
4048
uses: aws-actions/configure-aws-credentials@v4
4149
with:
42-
role-to-assume: arn:aws:iam::534081306603:role/bref-layer-publisher-github-actions
50+
role-to-assume: arn:aws:iam::873528684822:role/bref-layer-publisher-github-actions
4351
role-session-name: bref-layer-publisher-github-actions
4452
aws-region: us-east-1
4553

@@ -86,7 +94,7 @@ jobs:
8694
owner: 'brefphp',
8795
repo: 'bref',
8896
workflow_id: 'update-layer-versions.yml',
89-
ref: 'master',
97+
ref: 'v3',
9098
inputs: {
9199
release_url: '${{ github.event.release.url }}',
92100
release_html_url: '${{ github.event.release.html_url }}',
@@ -108,5 +116,5 @@ jobs:
108116
owner: 'brefphp',
109117
repo: 'layers.js',
110118
workflow_id: 'release.yml',
111-
ref: 'main'
119+
ref: 'v3'
112120
})

0 commit comments

Comments
 (0)