From 1891afa8bd0e985b0cf324aa24b94600f2dda422 Mon Sep 17 00:00:00 2001 From: Alejandro Villar Date: Tue, 18 Jun 2024 15:37:11 +0200 Subject: [PATCH] Add before_pages to action --- .github/workflows/validate-and-process.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/validate-and-process.yml b/.github/workflows/validate-and-process.yml index 57ed9eb..7c200e6 100644 --- a/.github/workflows/validate-and-process.yml +++ b/.github/workflows/validate-and-process.yml @@ -72,6 +72,11 @@ on: blocks as well as local ones. 0 means "only local", and a negative number means "all imports". default: 0 + before_pages: + type: string + description: | + Shell code to run before pushing to GH pages (e.g., for cleanup) + default: '' secrets: sparql_username: description: SPARQL Graph Store Protocol user name for push authentication @@ -201,6 +206,9 @@ jobs: if [ ! -f "404.html" ]; then cp "${{ inputs.viewer_path }}/index.html" 404.html fi + - name: Before pages + if: ${{inputs.before_pages}} + run: ${{inputs.before_pages}} - name: Setup Pages if: ${{ github.event.repository.has_pages && !inputs.skip-pages }} uses: actions/configure-pages@v3