This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
Merge pull request #62 from sanposhiho/panic-bug #13
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
name: tagpr | |
on: | |
push: | |
branches: ["master"] | |
jobs: | |
tagpr: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- id: tagpr | |
name: Tagpr | |
uses: Songmu/tagpr@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Trigger Release Workflow(only when tagged) | |
uses: actions/github-script@v6 | |
if: "steps.tagpr.outputs.tag != ''" | |
with: | |
script: | | |
github.rest.actions.createWorkflowDispatch({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
workflow_id: 'release.yaml', | |
ref: "refs/tags/${{ steps.tagpr.outputs.tag }}", | |
}) |