Skip to content

Commit

Permalink
[DEVOPS-321] Use SHA for github actions (#23)
Browse files Browse the repository at this point in the history
* chore(): pin gh actions to sha

* chore(): add version as comment for dependabot
  • Loading branch information
kwong0222 authored Aug 29, 2023
1 parent bcb00bc commit 89ff939
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tag-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: tag-and-release

on:
push:
branches:
branches:
- main
paths: 'aws-connect'

Expand All @@ -21,7 +21,7 @@ jobs:
echo version_tag=v$version >> $GITHUB_OUTPUT
- name: Tag commit
uses: tvdias/[email protected].1
uses: tvdias/github-tagger@ed7350546e3e503b5e942dffd65bc8751a95e49d # v0.0.2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
tag: "${{steps.get_version.outputs.version_tag}}"
Expand All @@ -31,12 +31,12 @@ jobs:
run: |
# Must use a temporary file or it loses the formatting
VERSION=${{steps.get_version.outputs.version}}; awk "/## \[$VERSION\]/{flag=1;next}/## \[/{flag=0}flag" CHANGELOG.md > REL-BODY.md
- name: Create Relase TAR
id: create_tar
run: |
tar cvzf ./aws-connect-${{steps.get_version.outputs.version}}.tar.gz aws-connect* README.md
- name: Generate Checksum
id: generate_checksum
run: |
Expand All @@ -45,7 +45,7 @@ jobs:
echo "SHA256: ${checksum}" >> REL-BODY.md
- name: Create Release
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 # v1.13.0
with:
tag: ${{steps.get_version.outputs.version_tag}}
artifacts: "*.gem, CHANGELOG.md, sha256.sum, aws-connect*.tar.gz"
Expand Down

0 comments on commit 89ff939

Please sign in to comment.