File tree Expand file tree Collapse file tree 2 files changed +18
-35
lines changed
Expand file tree Collapse file tree 2 files changed +18
-35
lines changed Original file line number Diff line number Diff line change 1+ name : trigger-book-build
2+ on :
3+ workflow_call :
4+ inputs :
5+ code_artifact_name :
6+ description : ' Artifact of the repository after automate-metrics has run.'
7+ required : true
8+ default : ' repo-zip'
9+ type : string
10+
11+ jobs :
12+ build :
13+ uses : ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
14+ with :
15+ environment_name : pythia-book-dev
16+ artifact_name : book-zip-${{ github.event.number }}
17+ code_artifact_name : {{ code_artifact_name }}
18+ # Other input options are possible, see ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml
Original file line number Diff line number Diff line change 88 - completed
99
1010jobs :
11- automate-metrics :
12- runs-on : macos-latest
13- steps :
14- - uses : actions/checkout@v3
15- - name : Automate Metrics
16- env :
17- PRIVATE_KEY : ${{ secrets.PRIVATE_KEY }}
18- PRIVATE_KEY_ID : ${{ secrets.PRIVATE_KEY_ID }}
19- run : |
20- python -m venv analytics-api
21- source analytics-api/bin/activate
22- pip install google-analytics-data cartopy matplotlib
23-
24- python .github/workflows/get-metrics.py
25- python .github/workflows/write-metrics-md.py
26- - name : Zip the repo
27- run : |
28- set -x
29- set -e
30- if [ -f repo.zip ]; then
31- rm -rf repo.zip
32- fi
33- zip -r repo.zip .
34-
35- upload-zip :
36- needs : automate-metrics
37- runs-on : macos-latest
38- steps :
39- - name : Upload artifact
40- uses : actions/upload-artifact@v4
41- with :
42- name : ' repo-w-metrics'
43- path : ' repo.zip'
44-
4511 find-pull-request :
46- needs : upload-zip
4712 uses : ProjectPythia/cookbook-actions/.github/workflows/find-pull-request.yaml@main
4813
4914 deploy-preview :
You can’t perform that action at this time.
0 commit comments