Add console log #131
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: | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
permissions: write-all | |
jobs: | |
screenshots: | |
runs-on: ubuntu-latest | |
name: Get screenshots of picture page | |
steps: | |
- name: Wait for Pages changed to neutral | |
uses: fountainhead/action-wait-for-check@v1.2.0 | |
id: wait-for-Netlify | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
checkName: 'Pages changed - eyesbound' | |
- name: Get Preview URL and generate screenshot after Netlify check done | |
if: steps.wait-for-Netlify.outputs.conclusion == 'neutral' | |
uses: jakepartusch/wait-for-netlify-action@v1 | |
id: waitFor200 | |
with: | |
site_name: 'eyesbound' | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: install puppeteer-headful | |
uses: mujo-code/puppeteer-headful@master | |
env: | |
CI: 'true' | |
- name: screenshots-ci-action | |
uses: flameddd/screenshots-ci-action@master | |
with: | |
url: ${{ steps.waitFor200.outputs.url }}/picture/ | |
releaseId: 132409907 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: screenshots | |
name: Download-screenshots |