1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-06-09 16:26:21 +02:00
youki/.github/workflows/tagpr.yaml
cuisongliu 9b37c2a950
docs(main): auto release node using just (#2537)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2023-12-17 20:35:19 +09:00

29 lines
834 B
YAML

name: 🚀 Tagpr for GitHub Actions
on:
push:
branches:
- main
jobs:
tagpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install just
uses: taiki-e/install-action@just
- uses: Songmu/tagpr@v1
id: tagpr
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 }}",
})