File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 2222 - name : ' Get the latest tag'
2323 id : latest-tag
2424 uses : " WyriHaximus/github-action-get-previous-tag@04e8485ecb6487243907e330d522ff60f02283ce" # v1.4.0
25-
25+
2626 upload-release-definition-to-s3 :
2727 needs :
2828 - get-latest-tag
3434 - name : Configure AWS credentials
3535 uses : aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 # v5.0.0
3636 with :
37- role-to-assume : ${{ secrets.TOOLBOX_TRIGGER_ROLE }}
37+ role-to-assume : ${{ vars.AWS_RELEASE_TRIGGER_ROLE }}
3838 role-session-name : upload-release-definition-to-s3
39- aws-region : ${{ secrets.TOOLBOX_TRIGGER_REGION }}
39+ aws-region : ${{ vars.AWS_RELEASE_TRIGGER_REGION }}
4040
4141 - name : Create and upload release definition to S3
4242 run : |
4747 # Create release definition JSON file
4848 cat > "release-def-${VERSION_NO_V}.json" << EOF
4949 {
50- "tag_name": "${{ needs.get-latest-tag.outputs.tag }}",
51- "source_s3uri": "s3://finch-installer-private/",
52- "source_access_role": "arn:aws:iam::090529234398:role/BundlerRole",
50+ "tag_name": "${VERSION}",
5351 "assets": [
5452 {
5553 "name": "Finch-${{ needs.get-latest-tag.outputs.tag }}-aarch64.pkg",
6664 EOF
6765
6866 # Upload to S3
69- aws s3 cp "release-def-${VERSION_NO_V}.json" s3://${{ secrets.TOOLBOX_TRIGGER_BUCKET }}/manifest/release-def-${VERSION_NO_V}.json --content-type "application/json"
67+ aws s3 cp "release-def-${VERSION_NO_V}.json" s3://${{ vars.AWS_RELEASE_TRIGGER_BUCKET }}/manifest/release-def-${VERSION_NO_V}.json --content-type "application/json"
You can’t perform that action at this time.
0 commit comments