Merge pull request #986 from jiridanek/jd_fix_perms #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
"name": "Build Notebooks (push)" | |
"on": | |
"push": | |
"workflow_dispatch": | |
"schedule": | |
- "cron": "0 2 * * *" | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
gen: | |
name: Generate job matrix | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.gen.outputs.matrix }} | |
has_jobs: ${{ steps.gen.outputs.has_jobs }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Determine targets to build (we want to build everything on push) | |
run: | | |
set -x | |
python3 ci/cached-builds/gen_gha_matrix_jobs.py | |
id: gen | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
shell: bash | |
build: | |
needs: ["gen"] | |
strategy: | |
fail-fast: false | |
matrix: "${{ fromJson(needs.gen.outputs.matrix) }}" | |
uses: ./.github/workflows/build-notebooks-TEMPLATE.yaml | |
if: ${{ fromJson(needs.gen.outputs.has_jobs) }} | |
with: | |
target: "${{ matrix.target }}" | |
github: "${{ toJSON(github) }}" | |
secrets: inherit |