Skip to content

Commit

Permalink
Update template workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Pun Butrach <[email protected]>
  • Loading branch information
validcube authored May 6, 2024
1 parent bffd1ed commit 5968385
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,23 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@v4
- name: Setup Go environment
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
uses: actions/setup-go@v5
with:
go-version: '1.21'
check-latest: true
- name: Append license to header
# Addlicense v1.1.1
run: |
go install github.com/google/addlicense@dc31ac9ffcca99c9457226366135701794b128c0
go install github.com/google/addlicense@latest
addlicense -c $HOLDER -l $LICENSE .
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
gpg_private_key: ${{ secrets.COLLISIONBOT_GPG_KEY }}
passphrase: ${{ secrets.COLLISIONBOT_GPG_PASSPHRASE }}
- name: Push
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 📝 Append license to files
commit_user_name: 'License keepers'
Expand Down

0 comments on commit 5968385

Please sign in to comment.