Skip to content

Commit

Permalink
Merge pull request #48 from regolith-linux/fix-tag-promotion
Browse files Browse the repository at this point in the history
fix: use correct token to promote tags
  • Loading branch information
khos2ow authored Dec 24, 2024
2 parents 422dda2 + b56112d commit 725800c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/tag-stage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/promote-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 725800c

Please sign in to comment.