forked from GatherPress/gatherpress
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request GatherPress#855 from carstingaxion/fix/screenshot-…
…workflow-trigger-image-compression-4 TRY another trigger to hopefully get 'compress images' started now.
- Loading branch information
Showing
3 changed files
with
7 additions
and
19 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,7 +163,7 @@ jobs: | |
git restore ./build | ||
git add -A | ||
git commit -m "Screenshots for ${{ matrix.locale }} updated!" | ||
# git push origin fix/wp-org-screenshots-${{ matrix.locale }}-${{ github.sha }} | ||
git push origin fix/wp-org-screenshots-${{ matrix.locale }}-${{ github.sha }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
@@ -177,18 +177,3 @@ jobs: | |
run: gh pr create -B main -H fix/wp-org-screenshots-${{ matrix.locale }}-${{ github.sha }} --title 'Update ${{ matrix.locale }} screenshots for wordpress.org' --body 'Created with ❤️ by WordPress Playground, Playwright & GitHub action' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# The compress images workflow says: "This action only runs for pushes to PRs" | ||
# So lets TRY to put the push event after the pr creation, | ||
# to hopefully get this triggered now. | ||
- name: Push updated screenshots | ||
# 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'. | ||
if: ${{ github.event.inputs.updateAllSnapshots || steps.screenshot-tests.outcome == 'failure' }} | ||
# git checkout -b fix/wp-org-screenshots-${{ matrix.locale }}-${{ github.sha }} | ||
# git config --local user.email "[email protected]" | ||
# git config --local user.name "GitHub Action" | ||
run: | | ||
git push origin fix/wp-org-screenshots-${{ matrix.locale }}-${{ github.sha }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |