mirror of
https://github.com/astefanutti/decktape.git
synced 2024-12-02 06:35:51 +03:00
ci: Revert to using GitHub PAT
This commit is contained in:
parent
949a3f011a
commit
ec50e7117a
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -17,7 +17,6 @@ on:
|
|||||||
- '**.adoc'
|
- '**.adoc'
|
||||||
- '**.md'
|
- '**.md'
|
||||||
- 'LICENSE'
|
- 'LICENSE'
|
||||||
workflow_dispatch:
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 12 * * *'
|
- cron: '0 12 * * *'
|
||||||
|
|
||||||
|
13
.github/workflows/update-snapshots.yml
vendored
13
.github/workflows/update-snapshots.yml
vendored
@ -8,7 +8,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.PAT }}
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npx playwright install firefox
|
- run: npx playwright install firefox
|
||||||
- run: npm run test:generate-pdfs
|
- run: npm run test:generate-pdfs
|
||||||
@ -21,14 +21,3 @@ jobs:
|
|||||||
git add .
|
git add .
|
||||||
git commit -m "test: update snapshot PDFs"
|
git commit -m "test: update snapshot PDFs"
|
||||||
git push
|
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 }}',
|
|
||||||
})
|
|
||||||
|
Loading…
Reference in New Issue
Block a user