Skip to content

Commit 7994fe8

Browse files
authored
Use Dapr Bot token when checking out code. (#1232)
Signed-off-by: Artur Souza <[email protected]>
1 parent 5eed695 commit 7994fe8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/create-release.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
uses: actions/checkout@v4
3333
with:
3434
fetch-depth: 0
35+
token: ${{ secrets.DAPR_BOT_TOKEN }}
3536
- name: Set up OpenJDK ${{ env.JDK_VER }}
3637
uses: actions/setup-java@v4
3738
with:
@@ -42,13 +43,9 @@ jobs:
4243
sudo apt-get update
4344
sudo apt-get install pcre2-utils
4445
- name: Create release branch and tag
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }}
4746
run: |
4847
git config user.email "[email protected]"
4948
git config user.name "Dapr Bot"
50-
# Update origin with token
51-
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
5249
# Copy first to allow automation to use the latest version and not the release branch's version.
5350
cp -R ./.github/scripts ${RUNNER_TEMP}/
5451
${RUNNER_TEMP}/scripts/create-release.sh ${{ inputs.rel_version }}

0 commit comments

Comments
 (0)