fix: updating screenshot workflow #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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: ${{ ! contains(' | |
release-please--branches | |
dependabot/ | |
', github.head_ref) | |
}} | |
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 "https://github.com/${{ github.REPOSITORY_OWNER }}" | |
- name: Push changes | |
run: | | |
git config user.name "$(git log -n 1 --pretty=format:%an)" | |
git config user.email "$(git log -n 1 --pretty=format:%ae)" | |
git add . | |
git commit -m "docs: updating screenshots" | |
git push |