Skip to content

Commit

Permalink
put gloval in invoke task
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-datadog committed Dec 10, 2024
1 parent bd8069d commit 7ac31d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create_rc_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
env:
MATRIX: ${{ matrix.value }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
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 "$MATRIX" --slack-webhook=${{ secrets.AGENT_RELEASE_SYNC_SLACK_WEBHOOK }} --github-action
4 changes: 4 additions & 0 deletions tasks/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,10 @@ def create_rc(ctx, release_branch, patch_version=False, upstream="origin", slack
with agent_context(ctx, release_branch):
github = GithubAPI(repository=GITHUB_REPO_NAME)

if github_action:
ctx.run("git config --global user.name 'github-actions[bot]'")
ctx.run("git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'")

# Get the version of the highest major: useful for some logging & to get
# the version to use for Go submodules updates
new_highest_version = next_rc_version(ctx, major_version, patch_version)
Expand Down

0 comments on commit 7ac31d1

Please sign in to comment.