Skip to content

Commit 87e1040

Browse files
tagbot + manual tag multidocs rebuild trigger
1 parent 25e3be5 commit 87e1040

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/TagBot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ jobs:
2929
with:
3030
token: ${{ secrets.GITHUB_TOKEN }}
3131
ssh: ${{ secrets.DOCUMENTER_KEY }}
32+
- name: Re-trigger docs build
33+
uses: peter-evans/repository-dispatch@v3
34+
with:
35+
event-type: tagbot-release-created

.github/workflows/docs.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- main
77
tags: ['*']
8+
repository_dispatch:
9+
types: [tagbot-release-created]
810
concurrency:
911
# Skip intermediate builds: always.
1012
# Cancel intermediate builds: only if it is a pull request build.
@@ -43,3 +45,28 @@ jobs:
4345
DocMeta.setdocmeta!(QuantumCollocation, :DocTestSetup, :(using QuantumCollocation); recursive=true)
4446
doctest(QuantumCollocation)'
4547
48+
tagbot-dispatch:
49+
name: Dispatch on TagBot Release
50+
runs-on: ubuntu-latest
51+
needs: docs
52+
if: github.event_name == 'repository_dispatch'
53+
steps:
54+
- name: Dispatch PiccoloMultiDocs workflow
55+
uses: peter-evans/repository-dispatch@v2
56+
with:
57+
token: ${{ secrets.REPO_ACCESS_TOKEN }}
58+
repository: harmoniqs/PiccoloMultiDocs.jl
59+
event-type: rebuild-docs
60+
61+
tag-push-dispatch:
62+
name: Dispatch on Tag Push
63+
runs-on: ubuntu-latest
64+
needs: docs
65+
if: github.ref_type == 'tag'
66+
steps:
67+
- name: Dispatch PiccoloMultiDocs workflow
68+
uses: peter-evans/repository-dispatch@v2
69+
with:
70+
token: ${{ secrets.REPO_ACCESS_TOKEN }}
71+
repository: harmoniqs/PiccoloMultiDocs.jl
72+
event-type: rebuild-docs

0 commit comments

Comments
 (0)