From b56112db0c4b05069181011df205347504778f3f Mon Sep 17 00:00:00 2001 From: Khosrow Moossavi Date: Tue, 24 Dec 2024 11:43:27 -0500 Subject: [PATCH] fix: use correct token to promote tags --- .github/scripts/tag-stage.sh | 2 +- .github/workflows/promote-stage.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/tag-stage.sh b/.github/scripts/tag-stage.sh index 9d02f2f1..6c55a5f0 100755 --- a/.github/scripts/tag-stage.sh +++ b/.github/scripts/tag-stage.sh @@ -49,7 +49,7 @@ handle_package() { if [[ $PACAKGE_SOURCE_URL == https://* ]]; then # Extract domain, user, and repo name - PACAKGE_SOURCE_URL=$(echo $PACAKGE_SOURCE_URL | sed -r 's|https://([^/]*)/([^/]*)/([^/]*)(.git)?|https://git:${GITHUB_TOKEN}@\1/\2/\3|') + PACAKGE_SOURCE_URL=$(echo $PACAKGE_SOURCE_URL | sed -r 's|https://([^/]*)/([^/]*)/([^/]*)(.git)?|https://git:'${GITHUB_TOKEN}'@\1/\2/\3|') fi if [ -d "$PACKAGE_NAME" ]; then diff --git a/.github/workflows/promote-stage.yml b/.github/workflows/promote-stage.yml index f3a8e3fc..d738244f 100644 --- a/.github/workflows/promote-stage.yml +++ b/.github/workflows/promote-stage.yml @@ -30,7 +30,7 @@ jobs: - name: Promote Stage id: build env: - GITHUB_TOKEN: ${{ secrets. GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.ORG_BROADCAST_TOKEN }} run: | set -x