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 64221ae
Show file tree
Hide file tree
Showing 2 changed files with 29 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
1 change: 1 addition & 0 deletions js/pdfjs/web/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
See https://github.com/adobe-type-tools/cmap-resources
-->
<!-- test -->
<html dir="ltr" mozdisallowselectionprint>
<head>
<meta charset="utf-8">
Expand Down

0 comments on commit 64221ae

Please sign in to comment.