-
Notifications
You must be signed in to change notification settings - Fork 11
32 lines (30 loc) · 974 Bytes
/
tagpr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# tagpr master workflow
#
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 }}
# If tagpr pushed tags, invoke release custom action manually.
# It is because:
# > When you use the repository's GITHUB_TOKEN to perform tasks,
# > events triggered by the GITHUB_TOKEN, with the exception of
# > workflow_dispatch and repository_dispatch, will not create
# > a new workflow run.
# ref: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
- name: "Release (only when tagged)"
uses: ./.github/actions/release
if: "steps.tagpr.outputs.tag != ''"
with:
tag: ${{ steps.tagpr.outputs.tag }}
token: ${{ secrets.GITHUB_TOKEN }}