From 86f55c732b3d3b0c87ac7c27554473885d7760cf Mon Sep 17 00:00:00 2001 From: "M.Graczyk" Date: Fri, 20 Sep 2024 14:56:59 +0200 Subject: [PATCH] :ribbon: Add if statement to the merge reports :ribbon: (#5173) * Add if statetment to the merge reports * Add unsaved changes * Added if globally --- .changeset/khaki-camels-double.md | 5 +++++ .github/workflows/pr-automation.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/khaki-camels-double.md diff --git a/.changeset/khaki-camels-double.md b/.changeset/khaki-camels-double.md new file mode 100644 index 00000000000..93c51c70863 --- /dev/null +++ b/.changeset/khaki-camels-double.md @@ -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. diff --git a/.github/workflows/pr-automation.yml b/.github/workflows/pr-automation.yml index f2ff18eb195..d6127a4588e 100644 --- a/.github/workflows/pr-automation.yml +++ b/.github/workflows/pr-automation.yml @@ -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