mirror of
https://github.com/dependabot/fetch-metadata.git
synced 2026-03-13 18:17:13 -04:00
Adds a workflow that publishes a new version of the immutable action package for this action on every release. Co-authored-by: Nish Sinha <nishnha@github.com>
28 lines
645 B
YAML
28 lines
645 B
YAML
name: "Publish Immutable Action Version"
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
packages: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Publish
|
|
id: publish
|
|
uses: actions/publish-immutable-action@0.0.3
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Set summary
|
|
run: |
|
|
echo ":rocket: Successfully published a new version of the immutable action package pointing at release: ${{ github.event.release.name }}" >> $GITHUB_STEP_SUMMARY
|