From e38f6a7ea9b38d7d9f543bdf2203fffd530d7b90 Mon Sep 17 00:00:00 2001 From: Florent Clarret Date: Fri, 30 Aug 2024 08:18:31 +0200 Subject: [PATCH] Fix the warning mode in the create-rc-pr workflow --- .github/workflows/create_rc_pr.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create_rc_pr.yml b/.github/workflows/create_rc_pr.yml index b6fea6cdab6a3..9503651db52be 100644 --- a/.github/workflows/create_rc_pr.yml +++ b/.github/workflows/create_rc_pr.yml @@ -14,6 +14,7 @@ jobs: runs-on: ubuntu-latest outputs: branches: ${{ steps.branches.outputs.value }} + warning: ${{ steps.warning.outputs.value }} steps: - name: Checkout repository uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 @@ -39,8 +40,10 @@ jobs: echo "value=$(inv release.get-unreleased-release-branches)" >> $GITHUB_OUTPUT - name: Set the warning option + id: warning if: github.event.schedule == '0 8 * * 1,3,5' - run: echo "WARNING='-w'" >> $GITHUB_ENV + run: | + echo "value=-w" >> $GITHUB_OUTPUT create_rc_pr: runs-on: ubuntu-latest @@ -74,7 +77,7 @@ jobs: ATLASSIAN_USERNAME: ${{ secrets.ATLASSIAN_USERNAME }} ATLASSIAN_PASSWORD: ${{ secrets.ATLASSIAN_PASSWORD }} run: | - echo "CHANGES=$(inv -e release.check-for-changes -r ${{ matrix.value }} ${{ env.WARNING }})" >> $GITHUB_OUTPUT + echo "CHANGES=$(inv -e release.check-for-changes -r ${{ matrix.value }} ${{ needs.find_release_branches.outputs.warning }})" >> $GITHUB_OUTPUT - name: Create RC PR if: ${{ steps.check_for_changes.outputs.CHANGES == 'true'}}