Skip to content

Commit 06eeed5

Browse files
authored
ci(release-rust): use AGNTCY_BUILD_BOT_GH_TOKEN for crates (#31)
## Motivation This is required to trigger events after the tag push. Currently we cannot accomplish this by using the github action bot because of https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#triggering-a-workflow-from-a-workflow ## Solution Use the AGNTCY_BUILD_BOT_GH_TOKEN in place of GITHUB_TOKEN Signed-off-by: Mauro Sardara <[email protected]>
1 parent cd4b324 commit 06eeed5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release-rust.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
# Release unpublished packages.
16-
release-plz-release:
16+
release-crates:
1717
name: Release agp crates
1818
runs-on: ubuntu-latest
1919
permissions:
@@ -37,12 +37,12 @@ jobs:
3737
manifest_path: ./data-plane/Cargo.toml
3838
config: ./data-plane/.release-plz.toml
3939
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
GITHUB_TOKEN: ${{ secrets.AGNTCY_BUILD_BOT_GH_TOKEN }}
4141
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
4242

4343
# Create a PR with the new versions and changelog, preparing the next release.
44-
release-plz-pr:
45-
name: Release-plz PR
44+
release-crates-pr:
45+
name: Release agp crates - PR
4646
runs-on: ubuntu-latest
4747
permissions:
4848
contents: write
@@ -68,5 +68,5 @@ jobs:
6868
manifest_path: ./data-plane/Cargo.toml
6969
config: ./data-plane/.release-plz.toml
7070
env:
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
GITHUB_TOKEN: ${{ secrets.AGNTCY_BUILD_BOT_GH_TOKEN }}
7272
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)