Files
pdf.js/.github/workflows/ref_tests_makeref.yml
dependabot[bot] 3d630f6a76 Bump actions/create-github-app-token from 3.2.0 to 3.3.0
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Changelog](https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/create-github-app-token/compare/bcd2ba49218906704ab6c1aa796996da409d3eb1...64ab729a6294000f5aa4a4bc0b73d1f32bc45510)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: 3.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-20 12:15:50 +00:00

53 lines
1.5 KiB
YAML

name: Update reference images
# Every push to master asks mozilla/pdf.js.pdfs to regenerate the reference
# images (Firefox, Linux + Windows) and commit the changes to
# mozilla/pdf.js.refs, so that the references always track master.
on:
push:
paths:
- 'gulpfile.mjs'
- 'external/**'
- 'package-lock.json'
- 'src/**'
- 'test/images/**'
- 'test/pdfs/**'
- 'test/resources/**'
- 'test/*.css'
- 'test/driver.js'
- 'test/test.mjs'
- 'test/test_manifest.json'
- 'test/test_slave.html'
- 'web/**'
- '.github/workflows/ref_tests_makeref.yml'
branches:
- master
permissions:
contents: read
jobs:
request:
if: github.repository == 'mozilla/pdf.js'
runs-on: ubuntu-latest
environment: sync_pdfs
steps:
- name: Generate app token for pdf.js.pdfs
id: app-token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ secrets.CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: mozilla
repositories: pdf.js.pdfs
permission-contents: write
- name: Dispatch the reference update
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
payload=$(jq -nc --arg sha "$GITHUB_SHA" \
'{ event_type: "ref-tests-makeref", client_payload: { sha: $sha } }')
gh api repos/mozilla/pdf.js.pdfs/dispatches \
--method POST \
--input - <<< "$payload"