From ad930aada7ec1a528aa03d7c70bea26c6b274380 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 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create_rc_pr.yml b/.github/workflows/create_rc_pr.yml index b6fea6cdab6a3d..3225dec13864d5 100644 --- a/.github/workflows/create_rc_pr.yml +++ b/.github/workflows/create_rc_pr.yml @@ -5,6 +5,7 @@ on: schedule: - cron: '0 14 * * 1,3,5' # Run on Monday, Wednesday, and Friday at 14:00 UTC - cron: '0 8 * * 1,3,5' # Same as above but at 08:00 UTC, to warn agent-integrations team about releasing + pull_request: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -39,8 +40,9 @@ 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 +76,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'}} @@ -82,4 +84,4 @@ jobs: git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git fetch - inv -e release.create-rc --slack-webhook=${{ secrets.AGENT_RELEASE_SYNC_SLACK_WEBHOOK }} +# inv -e release.create-rc --slack-webhook=${{ secrets.AGENT_RELEASE_SYNC_SLACK_WEBHOOK }}