Skip to content

New version: CachedCalls v0.1.1 (#258) #116

New version: CachedCalls v0.1.1 (#258)

New version: CachedCalls v0.1.1 (#258) #116

Workflow file for this run

name: TriggerTagBot
on:
push:
branches:
- master
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Get updated package name
id: pkg
run: |
PACKAGENAME=$(git diff HEAD^ --stat | grep /Versions.toml | cut -d/ -f2 | uniq)
echo "Package name is: $PACKAGENAME"
echo "packagename=$PACKAGENAME" >> "$GITHUB_ENV"
- name: Run `repository_dispatch` on updated repo, to trigger tagbot
env:
TAGBOT_PAT: ${{ secrets.TAGBOT_PAT_TEST }}
run: |
curl -X POST https://api.github.com/repos/HolyLab/${packagename}.jl/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-H "Authorization: Bearer $TAGBOT_PAT" \
--verbose \
--data '{"event_type": "TriggerTagBot_${packagename}", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}'