File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 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)
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
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 })
You can’t perform that action at this time.
0 commit comments