Skip to content

Commit

Permalink
🎀 Add if statement to the merge reports 🎀 (#5173)
Browse files Browse the repository at this point in the history
* Add if statetment to the merge reports

* Add unsaved changes

* Added if globally
  • Loading branch information
michalina-graczyk authored Sep 20, 2024
1 parent eb981d0 commit 86f55c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/khaki-camels-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Adds conditional logic to the Merge Playwright Reports workflow, ensuring that the merge and upload steps are only triggered when the pull request has the run pw-e2e label applied.
2 changes: 1 addition & 1 deletion .github/workflows/pr-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
PW_RETRIES: ${{ vars.PW_RETRIES }}

merge-reports:
if: "!cancelled()"
if: "!cancelled() && contains(github.event.pull_request.labels.*.name, 'run pw-e2e')"

needs: run-tests
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 86f55c7

Please sign in to comment.