Skip to content

Commit

Permalink
add workflow to notify of changed viewer.html
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <[email protected]>
  • Loading branch information
szaimen committed Aug 21, 2023
1 parent 6a214a9 commit 4e0d164
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/update-viewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update viewer.php - viewer.html got updated so viewer.php needs an update

on:
pull_request:
types: [opened, ready_for_review, reopened, synchronize]
paths:
- 'js/pdfjs/web/viewer.html'

permissions:
contents: read

concurrency:
group: update-viewer-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
update-viewer:
name: Update viewer.php - viewer.html got updated so viewer.php needs an update

if: github.event.pull_request.draft == false

runs-on: ubuntu-latest

steps:
- name: Update viewer.php - viewer.html got updated so viewer.php needs an update
run: |
echo "Update viewer.php - viewer.html got updated so viewer.php needs an update"
exit 1

0 comments on commit 4e0d164

Please sign in to comment.