forked from GeoscienceAustralia/dea-notebooks
-
Notifications
You must be signed in to change notification settings - Fork 0
24 lines (19 loc) · 978 Bytes
/
trigger_docs.yaml
File metadata and controls
24 lines (19 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Trigger DEA Docs Build
# Documentation in this repo is not built in this GitHub Action. Instead, it is built by a separate Action in the dea-knowledge-hub repo.
# See here: https://github.com/GeoscienceAustralia/dea-knowledge-hub/blob/main/.github/workflows/deploy-production.yaml
# The below action triggers a build in dea-knowledge-hub when changes are pushed to the 'stable' branch in the current repo
on:
push:
branches:
- stable
jobs:
trigger_docs:
runs-on: ubuntu-latest
environment: prod_dea_knowledge_hub
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_PAT }} # A Personal Access Token with the 'public_repo' scope that is stored as a secret here: https://github.com/GeoscienceAustralia/dea-notebooks/settings/secrets/actions
repository: GeoscienceAustralia/dea-knowledge-hub
event-type: publish-notebooks-to-knowledge-hub