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 <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Aug 21, 2023
1 parent 6a214a9 commit 229d101
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/update-viewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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: 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 229d101

Please sign in to comment.