refactor(puppeteer.js): change screenshot save path to 'docs/img/github-profile.png' The screenshot taken by Puppeteer is now saved in the 'docs/img' directory instead of the root directory. This change was made to keep the project root directory clean and organize all images in a dedicated directory. #5
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: 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 |