ci: Revert to using GitHub PAT

This commit is contained in:
Antonin Stefanutti 2023-02-14 10:57:42 +01:00 committed by Antonin Stefanutti
parent 949a3f011a
commit ec50e7117a
2 changed files with 1 additions and 13 deletions

View File

@ -17,7 +17,6 @@ on:
- '**.adoc'
- '**.md'
- 'LICENSE'
workflow_dispatch:
schedule:
- cron: '0 12 * * *'

View File

@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PAT }}
- run: npm ci
- run: npx playwright install firefox
- run: npm run test:generate-pdfs
@ -21,14 +21,3 @@ jobs:
git add .
git commit -m "test: update snapshot PDFs"
git push
- name: Trigger CI Workflow
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'ci.yml',
ref: '${{ github.ref }}',
})