Skip to content

Commit d644345

Browse files
Reapply "Update the github actin, to support manual execution."
This reverts commit 8e9f58f.
1 parent 005e54a commit d644345

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/development-generate-pdf-files.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ on:
55
push:
66
branches:
77
- development
8+
workflow_dispatch:
9+
inputs:
10+
reason:
11+
description: 'Reason for manual run'
12+
required: false
13+
default: 'Testing'
14+
add_watermark:
15+
description: 'Add "draft" watermark to PDF?'
16+
required: true
17+
type: boolean
18+
default: true
819

920
concurrency:
1021
group: ${{ github.workflow }}-${{ github.ref }}
@@ -71,6 +82,8 @@ jobs:
7182
export JAVA_TOOL_OPTIONS="-Djavax.xml.XMLConstants.FEATURE_SECURE_PROCESSING=false" ; \
7283
cd ${{ github.workspace }} ; perl build/build.pl
7384
- name: Add draft watermark to the PDF files
85+
# Runs if it's a push OR if the manual trigger 'add_watermark' is true
86+
if: github.event_name == 'push' || inputs.add_watermark == true
7487
run: |
7588
cd ${{ github.workspace }} ; fdfind -e pdf . 'out' -x watermark grid {} "draft"
7689
- name: Calculate the short commit ID

0 commit comments

Comments
 (0)