From 47328141fdebe7691c21e61fa17ecbf984f998c6 Mon Sep 17 00:00:00 2001 From: Antoine Le Morvan Date: Tue, 6 Feb 2024 17:20:00 +0100 Subject: [PATCH 1/2] Generate pdf everyday at midnight only --- .github/workflows/generate-pdfs.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/generate-pdfs.yml b/.github/workflows/generate-pdfs.yml index 9b0fd240b6..201a03c8b0 100644 --- a/.github/workflows/generate-pdfs.yml +++ b/.github/workflows/generate-pdfs.yml @@ -2,12 +2,8 @@ name: Mkdocs build PDFs on: - push: - branches: - - main schedule: - - cron: '0 12 1 * *' - workflow_dispatch: + - cron: '0 0 * * *' jobs: build_pdfs: From c9c3e6e3a9224ef25e94a39448ab522b202ce823 Mon Sep 17 00:00:00 2001 From: Antoine Le Morvan Date: Tue, 6 Feb 2024 17:34:57 +0100 Subject: [PATCH 2/2] Configure token --- .github/workflows/generate-pdfs.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/generate-pdfs.yml b/.github/workflows/generate-pdfs.yml index 201a03c8b0..7e3d677159 100644 --- a/.github/workflows/generate-pdfs.yml +++ b/.github/workflows/generate-pdfs.yml @@ -5,6 +5,21 @@ on: schedule: - cron: '0 0 * * *' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + jobs: build_pdfs: runs-on: ubuntu-latest