1
0
Fork 0
mirror of synced 2026-06-05 19:18:19 +00:00
configure-aws-credentials/.github/workflows/release.yml
Workflow config file is invalid. Please check your config file: Line: 17 Column 5: Failed to match job-factory: Line: 18 Column 9: Unknown Variable Access v1 Line: 17 Column 5: Failed to match workflow-job: Line: 18 Column 9: Unknown Variable Access v1 Line: 19 Column 5: Unknown Property timeout-minutes Line: 20 Column 5: Unknown Property steps Line: 47 Column 5: Failed to match job-factory: Line: 47 Column 5: Unknown Property description Line: 48 Column 9: Unknown Variable Access v1-versioned Line: 47 Column 5: Failed to match workflow-job: Line: 47 Column 5: Unknown Property description Line: 48 Column 9: Unknown Variable Access v1-versioned Line: 49 Column 5: Unknown Property timeout-minutes Line: 50 Column 5: Unknown Property steps Forgejo Actions YAML Schema validation error
2022-10-27 17:00:46 -07:00

81 lines
2.9 KiB
YAML

name: Update release tags
on:
workflow_dispatch:
inputs:
v1:
description: 'Update v1 release tag to the tip of the selected branch'
required: false
type: boolean
v1-versioned:
description: 'Push a new release semantic versioned tag to the selected branch'
required: false
type: boolean
jobs:
v1:
name: Update v1 release tag
if: ${{ v1 }}
timeout-minutes: 15
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-region: us-west-2
role-to-assume: ${{ secrets.SECRETS_AWS_ROLE_TO_ASSUME }}
role-session-name: SecretsManagerFetch
role-duration-seconds: 900
- name: Get bot user token
uses: aws-actions/aws-secretsmanager-get-secrets@v1
with:
parse-json-secrets: true
secret-ids: |
OSDS,arn:aws:secretsmanager:us-west-2:294535624312:secret:github-aws-sdk-osds-automation-ZHNalp
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.ref_name }}
token: ${{ env.OSDS_ACCESS_TOKEN }}
- name: Push tag
run: |
echo "::add-mask::${{ env.OSDS_ACCESS_TOKEN }}"
git config --global user.name "GitHub Actions"
git tag -f -a v1 -m "Update v1 to ${{ github.sha }}"
git push https://${{ env.OSDS_ACCESS_TOKEN }}@github.com/aws-actions/configure-aws-credentials.git -f --tags
v1-versioned:
description: 'Push a new semantic version tag'
if: ${{ v1-versioned }}
timeout-minutes: 15
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-region: us-west-2
role-to-assume: ${{ secrets.SECRETS_AWS_ROLE_TO_ASSUME }}
role-session-name: SecretsManagerFetch
role-duration-seconds: 900
- name: Get bot user token
uses: aws-actions/aws-secretsmanager-get-secrets@v1
with:
parse-json-secrets: true
secret-ids: |
OSDS,arn:aws:secretsmanager:us-west-2:294535624312:secret:github-aws-sdk-osds-automation-ZHNalp
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.ref_name }}
token: ${{ env.OSDS_ACCESS_TOKEN }}
- name: Get new semantic version
id: semver
uses: paulhatch/semantic-version@v4.0.2
with:
tag_prefix: 'v'
major_pattern: '!'
- name: Push semantic tag
run: |
echo "::add-mask::${{ env.OSDS_ACCESS_TOKEN }}"
git config --global user.name "GitHub Actions"
git tag -f -a ${{ steps.semver.version_tag }} -m "New ${{ steps.semver.version_tag }} release"
git push https://${{ env.OSDS_ACCESS_TOKEN }}@github.com/aws-actions/configure-aws-credentials.git -f --tags