Skip to content

Commit

Permalink
Add before_pages to action
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jun 18, 2024
1 parent 86d544e commit 1891afa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/validate-and-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1891afa

Please sign in to comment.