From ec50e7117a26c45809a922a90520124b89f7981c Mon Sep 17 00:00:00 2001 From: Antonin Stefanutti Date: Tue, 14 Feb 2023 10:57:42 +0100 Subject: [PATCH] ci: Revert to using GitHub PAT --- .github/workflows/ci.yml | 1 - .github/workflows/update-snapshots.yml | 13 +------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfefa40..66fa39d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,6 @@ on: - '**.adoc' - '**.md' - 'LICENSE' - workflow_dispatch: schedule: - cron: '0 12 * * *' diff --git a/.github/workflows/update-snapshots.yml b/.github/workflows/update-snapshots.yml index 05830ab..c61b750 100644 --- a/.github/workflows/update-snapshots.yml +++ b/.github/workflows/update-snapshots.yml @@ -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 }}', - })