Skip to content

Commit c0445ea

Browse files
authored
Update TagBot.yml
1 parent 4aafc8f commit c0445ea

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/TagBot.yml

+23-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,38 @@
11
name: TagBot
22
on:
3+
issue_comment:
4+
types:
5+
- created
36
repository_dispatch:
47
workflow_dispatch:
8+
inputs:
9+
lookback:
10+
default: 3
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
524
jobs:
625
TagBot:
26+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' || (github.event_name == 'repository_dispatch' && github.event.client_payload.repository == 'HolyLab/HolyLabRegistry')
727
runs-on: ubuntu-latest
828
steps:
929
- name: Event Information
1030
run: |
11-
echo "Event '${{ github.event.action }}' received from '${{ github.event.client_payload.repository }}'"
31+
echo "Event '${{ github.event_name }}' received from '${{ github.event.client_payload.repository }}'"
1232
- uses: JuliaRegistries/TagBot@v1
1333
with:
1434
token: ${{ secrets.GITHUB_TOKEN }}
35+
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key
1536
ssh: ${{ secrets.DOCUMENTER_KEY }}
37+
# ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }}
1638
registry: HolyLab/HolyLabRegistry
17-
lookback: 300

0 commit comments

Comments
 (0)