Merge branch 'kellertk/githubci' into vNext

This commit is contained in:
Tom Keller 2022-10-27 16:59:21 -07:00
commit 0b8a545868
No known key found for this signature in database
GPG key ID: E1806C1EE1663B8D
3 changed files with 141 additions and 12 deletions

View file

@ -0,0 +1,19 @@
name: Closed Issue Message
on:
issues:
types: [closed]
jobs:
auto_comment:
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- uses: aws-actions/closed-issue-message@v1
with:
# These inputs are both required
repo-token: "${{ secrets.GITHUB_TOKEN }}"
message: |
** Note **
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

115
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,115 @@
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
v1-node16:
description: 'Merge the tip of the branch selected into v1-node16'
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-node16:
name: Merge the master into v1-node16
if: ${{ v1-node16 }}
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: ${{ v1-node16 }}
token: ${{ env.OSDS_ACCESS_TOKEN }}
- name: Push new merge commit
run: |
echo "::add-mask::${{ env.OSDS_ACCESS_TOKEN }}"
git config --global user.name "GitHub Actions"
git merge ${{ github.ref_name }} -m 'Merge ${{ github.ref_name }} into v1-node16'
git push https://${{ env.OSDS_ACCESS_TOKEN }}@github.com/aws-actions/configure-aws-credentials.git
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

19
package-lock.json generated
View file

@ -12673,12 +12673,7 @@
"integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",
"dev": true,
"requires": {
"array-union": "^2.1.0",
"dir-glob": "^3.0.1",
"fast-glob": "^3.2.9",
"ignore": "^5.2.0",
"merge2": "^1.4.1",
"slash": "^3.0.0"
"type-fest": "^0.20.2"
}
},
"globrex": {
@ -13790,6 +13785,12 @@
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
"dev": true
},
"make-error": {
"version": "1.3.6",
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
"dev": true
},
"makeerror": {
"version": "1.0.12",
"resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz",
@ -13938,12 +13939,6 @@
"integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
"dev": true
},
"merge2": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
"integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
"dev": true
},
"micromatch": {
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",