Skip to content

Commit

Permalink
fix: update relase workflows (#308)
Browse files Browse the repository at this point in the history
Update release workflows for immutable actions
  • Loading branch information
verbanicm authored Oct 29, 2024
1 parent 2715e4c commit c6a773d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Publish immutable action version'

on:
workflow_dispatch:
release:
types:
- 'published'

jobs:
publish:
runs-on: 'ubuntu-latest'
permissions:
contents: 'read'
id-token: 'write'
packages: 'write'

steps:
- name: 'Checkout'
uses: 'actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871' # ratchet:actions/checkout@v4

- name: 'Publish'
id: 'publish'
uses: 'actions/publish-immutable-action@4b1aa5c1cde5fedc80d52746c9546cb5560e5f53' # ratchet:actions/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ jobs:
if: |-
${{ startsWith(github.event.head_commit.message, 'Release: v') }}
name: 'Release'
uses: 'google-github-actions/.github/.github/workflows/release.yml@v0'
uses: 'google-github-actions/.github/.github/workflows/release.yml@v1' # ratchet:exclude
# secrets must be explicitly passed to reusable workflows https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows\#using-inputs-and-secrets-in-a-reusable-workflow
secrets:
ACTIONS_BOT_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'

0 comments on commit c6a773d

Please sign in to comment.