Skip to content

Commit

Permalink
Merge pull request GatherPress#852 from carstingaxion/fix/screenshot-…
Browse files Browse the repository at this point in the history
…workflow-trigger-image-compression

TRY Add 'Compress Images' step directly to the screenshot workflow
  • Loading branch information
carstingaxion authored Sep 4, 2024
2 parents ddfe262 + 97cc3da commit 0702ae1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/wordpress-org-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Compress Images
uses: calibreapp/image-actions@main #main is regularly updated (until 09/2024 so far), while the latest tagged version is from 2020
with:
# Configuration could be added
# https://github.com/marketplace/actions/image-actions#%EF%B8%8F-configuration
#
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action can’t update Pull Requests initiated from forked repositories.
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
githubToken: ${{ secrets.GITHUB_TOKEN }}

- name: Create a Pull Request
# Using "continue-on-error:true" results in 'conclusion' being a success in any case, while the 'outcome' can differ.
# And, as you already guessed, if: failure() looks at 'conclusion'.
Expand Down

0 comments on commit 0702ae1

Please sign in to comment.