Skip to content

Commit

Permalink
test a6 create rc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 12, 2024
1 parent a719857 commit 1077881
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/create_rc_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AGENT6_MATRIX: ${{ ['6.53.x'] }}
IS_AGENT6_RELEASE: ${{ github.event.schedule == '0 9 * * 1' }}
# IS_AGENT6_RELEASE: ${{ github.event.schedule == '0 9 * * 1' }}
IS_AGENT6_RELEASE: 'true'
permissions: {}

jobs:
Expand Down
1 change: 1 addition & 0 deletions tasks/libs/ciproviders/github_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ def create_release_pr(title, base_branch, target_branch, version, changelog_pr=F
pr_body="",
base_branch=base_branch,
target_branch=target_branch,
draft=True,
)

if not pr:
Expand Down
16 changes: 8 additions & 8 deletions tasks/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,14 +530,14 @@ def create_rc(ctx, release_branch, patch_version=False, upstream="origin", slack
)

# Step 4 - If slack workflow webhook is provided, send a slack message
if slack_webhook:
print(color_message("Sending slack notification", "bold"))
payload = {
"pr_url": pr_url,
"version": str(new_highest_version),
}

ctx.run(f"curl -X POST -H 'Content-Type: application/json' --data '{json.dumps(payload)}' {slack_webhook}")
# if slack_webhook:
# print(color_message("Sending slack notification", "bold"))
# payload = {
# "pr_url": pr_url,
# "version": str(new_highest_version),
# }

# ctx.run(f"curl -X POST -H 'Content-Type: application/json' --data '{json.dumps(payload)}' {slack_webhook}")


@task
Expand Down

0 comments on commit 1077881

Please sign in to comment.