Skip to content

refactor(github-actions): use GITHUB_TOKEN instead of PAT for authentication The Personal Access Token (PAT) was replaced with the GITHUB_TOKEN in all GitHub Actions workflows. This change was made to simplify the authentication process and to leverage the built-in GITHUB_TOKEN, which automatically handles permissions and lifecycle. This also reduces the need for managing additional secrets like PAT. #10

refactor(github-actions): use GITHUB_TOKEN instead of PAT for authentication The Personal Access Token (PAT) was replaced with the GITHUB_TOKEN in all GitHub Actions workflows. This change was made to simplify the authentication process and to leverage the built-in GITHUB_TOKEN, which automatically handles permissions and lifecycle. This also reduces the need for managing additional secrets like PAT.

refactor(github-actions): use GITHUB_TOKEN instead of PAT for authentication The Personal Access Token (PAT) was replaced with the GITHUB_TOKEN in all GitHub Actions workflows. This change was made to simplify the authentication process and to leverage the built-in GITHUB_TOKEN, which automatically handles permissions and lifecycle. This also reduces the need for managing additional secrets like PAT. #10

Workflow file for this run

---
name: screenshots
on: # yamllint disable-line rule:truthy
pull_request:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
permissions:
id-token: write
contents: write
pull-requests: write
actions: write
jobs:
screenshots:
if: github.head_ref != 'release-please--branches--main'
name: screenshots
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
- uses: browser-actions/setup-chrome@11cef13cde73820422f9263a707fb8029808e191
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
# - name: Run test
# uses: tj-actions/puppeteer@a2befb374cdb596ae129a21e0a52494eb028ee82
# id: puppeteer
# with:
# files: |
# puppeteer.js
- name: Install dependencies
run: npm i puppeteer
- name: Screenshots
uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3
with:
run: node puppeteer.js
- name: Push changes
run: |
git config --global user.name "Robin Mordasiewicz"
git config --global user.email "[email protected]"
git commit -a -m "docs: updating screenshots"
git push