Skip to content

Commit 1891afa

Browse files
committed
Add before_pages to action
1 parent 86d544e commit 1891afa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/validate-and-process.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ on:
7272
blocks as well as local ones. 0 means "only local", and a negative number means
7373
"all imports".
7474
default: 0
75+
before_pages:
76+
type: string
77+
description: |
78+
Shell code to run before pushing to GH pages (e.g., for cleanup)
79+
default: ''
7580
secrets:
7681
sparql_username:
7782
description: SPARQL Graph Store Protocol user name for push authentication
@@ -201,6 +206,9 @@ jobs:
201206
if [ ! -f "404.html" ]; then
202207
cp "${{ inputs.viewer_path }}/index.html" 404.html
203208
fi
209+
- name: Before pages
210+
if: ${{inputs.before_pages}}
211+
run: ${{inputs.before_pages}}
204212
- name: Setup Pages
205213
if: ${{ github.event.repository.has_pages && !inputs.skip-pages }}
206214
uses: actions/configure-pages@v3

0 commit comments

Comments
 (0)