-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DEVOPS-321] Use SHA for github actions (#23)
* chore(): pin gh actions to sha * chore(): add version as comment for dependabot
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: tag-and-release | |
|
||
on: | ||
push: | ||
branches: | ||
branches: | ||
- main | ||
paths: 'aws-connect' | ||
|
||
|
@@ -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}}" | ||
|
@@ -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: | | ||
|
@@ -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" | ||
|