Skip to content

Commit

Permalink
chore(): pin third party gh action to sha (#19)
Browse files Browse the repository at this point in the history
* chore(): pin third party gh action to sha

* chore(): add version as comment
  • Loading branch information
kwong0222 authored Sep 5, 2023
1 parent 26e95cc commit 683d9d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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: 'lib/*/version.rb'

Expand All @@ -27,7 +27,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 Down Expand Up @@ -61,9 +61,9 @@ 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 Release
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@a2e71bdd4e7dab70ca26a852f29600c98b33153e # v1.13.0
with:
tag: ${{steps.get_version.outputs.version_tag}}
artifacts: "*.gem, CHANGELOG.md"
Expand Down

0 comments on commit 683d9d8

Please sign in to comment.