Skip to content

Merge pull request #38 from pfnet-research/tagpr-from-v0.1.3 #11

Merge pull request #38 from pfnet-research/tagpr-from-v0.1.3

Merge pull request #38 from pfnet-research/tagpr-from-v0.1.3 #11

Workflow file for this run

name: tagpr
on:
push:
branches: ["master"]
jobs:
tagpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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@v7
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 }}",
})