Skip to content

Commit 363ff88

Browse files
authored
Merge pull request #78 from Songmu/doc
update README.md
2 parents c0a38b2 + 62cd08d commit 363ff88

1 file changed

Lines changed: 26 additions & 5 deletions

File tree

README.md

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,34 @@ on:
2424
push:
2525
branches: ["main"]
2626
jobs:
27-
deploy:
27+
tagpr:
2828
runs-on: ubuntu-latest
2929
steps:
30-
- uses: actions/checkout@v3
31-
- uses: Songmu/tagpr@main
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
- uses: actions/checkout@v3
31+
- uses: Songmu/tagpr@main
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
```
35+
36+
If you do not want to use the token provided by GitHub Actions, do the following This is useful if you want to trigger another action with a tag.
37+
It would be safer to issue the token in conjunction with the GitHub App instead of a personal access token.
38+
39+
```yaml
40+
name: tagpr
41+
on:
42+
push:
43+
branches:
44+
- main
45+
jobs:
46+
tagpr:
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v3
50+
with:
51+
token: ${{ secrets.GH_PAT }}
52+
- uses: Songmu/tagpr@main
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
3455
```
3556
3657
## Description

0 commit comments

Comments
 (0)