Skip to content

Commit 01bd778

Browse files
authored
Fix TagBot workflow (#14)
* Add required TagBot permissions * Add self-test trigger to TagBot workflow * Adjust conditional
1 parent ca97acb commit 01bd778

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/TagBot.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,26 @@ on:
44
issue_comment:
55
types:
66
- created
7+
pull_request:
8+
paths:
9+
- ".github/workflows/TagBot.yml"
710
workflow_dispatch:
11+
permissions:
12+
actions: read
13+
checks: read
14+
contents: write
15+
deployments: read
16+
issues: read
17+
discussions: read
18+
packages: read
19+
pages: read
20+
pull-requests: read
21+
repository-projects: read
22+
security-events: read
23+
statuses: read
824
jobs:
925
TagBot:
10-
if: ${{ github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' }}
26+
if: ${{ github.event_name != 'issue_comment' || github.actor == 'JuliaTagBot' }}
1127
runs-on: ubuntu-latest
1228
steps:
1329
- uses: JuliaRegistries/TagBot@v1

0 commit comments

Comments
 (0)