Skip to content

Kdw503 patch 1 (#244) #90

Kdw503 patch 1 (#244)

Kdw503 patch 1 (#244) #90

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 "::set-output name=packagename::$PACKAGENAME"
- name: Run `repository_dispatch` on updated repo, to trigger tagbot
run: |
curl -L -X POST
-H "Accept: application/vnd.github+json" \
-H "Authorization: ${{ secrets.TAGBOT_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/HolyLab/${{ steps.pkg.outputs.packagename }}.jl/dispatches \
-d '{"event_type":"on-demand-test","client_payload":{"unit":false,"integration":true}}'