Skip to main content

One post tagged with "Github Actions"

Github Actions tag description

View All Tags

Github Actions

· 3 min read
Toshi Moto
Front End Engineer

Github Actions run on a Github Event, however, the default behavior of the Webshot Archive Github Action will differ based on the type of event being run.

When running a workflow on pull_request, the Webshot Archive Github Action will default its compareCommitSha (the commit to compare against) based on ${{ github.event.pull_request.base.sha }}. For a workflow that runs on push, the compareCommitSha is based on ${{ github.event.before }}. Override this behavior by setting the compareCommitSha in the action input options. See the API docs for more information of customizing the action input options.

note

To comment on a pull request with the captured images, the workflow must run on pull_request.