Skip to content

Commit 1696cdd

Browse files
authored
Update TriggerTagBot.yml
1 parent 56895c5 commit 1696cdd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/TriggerTagBot.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ jobs:
1616
id: pkg
1717
run: |
1818
PACKAGENAME=$(git diff HEAD^ --stat | grep /Versions.toml | cut -d/ -f2 | uniq)
19-
echo "::set-output name=packagename::$PACKAGENAME"
19+
echo "Package name is: $PACKAGENAME"
20+
echo "packagename=$PACKAGENAME" >> "$GITHUB_ENV"
2021
- name: Run `repository_dispatch` on updated repo, to trigger tagbot
2122
run: |
22-
curl -X POST https://api.github.com/repos/HolyLab/${{ steps.pkg.outputs.packagename }}.jl/dispatches \
23+
curl -X POST https://api.github.com/repos/HolyLab/${packagename}.jl/dispatches \
2324
-H 'Accept: application/vnd.github.everest-preview+json' \
2425
-u ${{ secrets.TAGBOT_PAT_TEST }} \
25-
--data '{"event_type": "TriggerTagBot_${{ steps.pkg.outputs.packagename }}", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}'
26+
--data '{"event_type": "TriggerTagBot_${packagename}", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}'

0 commit comments

Comments
 (0)