From 8e6eaf826cda84743e224bbd03cfaa3f1dcdd67b Mon Sep 17 00:00:00 2001 From: Aishwarya-U-R <91450662+Aishwarya-U-R@users.noreply.github.com> Date: Sat, 1 Jul 2023 00:31:23 +0530 Subject: [PATCH] ci: Cypress-only-fixes label workflow fix-II (#24981) ## Description - This PR fixes the Add Cypress-Only-Fixes Label on PR Merge workflow --- .github/workflows/add-label.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-label.yml b/.github/workflows/add-label.yml index 8e597abb92..dbdfe3f1d8 100644 --- a/.github/workflows/add-label.yml +++ b/.github/workflows/add-label.yml @@ -3,6 +3,8 @@ on: pull_request: types: - closed + branches: + - release jobs: add_label: @@ -36,8 +38,8 @@ jobs: if: ${{ env.PR_MERGED == 'true' && steps.check_files_changed.outputs.files_changed_count > 0 }} uses: actions/github-script@v6 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | const issue = context.issue; const labelToAdd = 'cypress-flaky-fix';