Skip to content

Commit

Permalink
Fix the warning mode in the create-rc-pr workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentClarret committed Aug 30, 2024
1 parent 404da90 commit ad930aa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/create_rc_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -74,12 +76,12 @@ 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'}}
run: |
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 }}

0 comments on commit ad930aa

Please sign in to comment.