Skip to content

Commit

Permalink
chore(frontend): rename token variable (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lodin authored Sep 6, 2021
1 parent cd468b8 commit a6adc41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/frontend-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Bump New Version
run: sh scripts/bump.sh
env:
GITHUB_RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GIT_RELEASE_TOKEN: ${{ secrets.GIT_RELEASE_TOKEN }}
REPO: ${{ github.repository }}
VERSION_TAG: ${{ github.event.release.tag_name }}
- name: Publish
Expand Down
4 changes: 2 additions & 2 deletions frontend/scripts/bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ branch=main
# shellcheck disable=SC2139
alias ghr="curl https://api.github.com/repos/$REPO/branches/$branch/protection \
-H 'Accept: application/vnd.github.v3+json' \
-H 'Authorization: token $GITHUB_RELEASE_TOKEN' \
-H 'Authorization: token $GIT_RELEASE_TOKEN' \
-s"

node scripts/update-package-versions.js "$VERSION_TAG"
Expand All @@ -26,6 +26,6 @@ remapped=$(node scripts/protection-remap.js "$protection_config")

ghr -X PUT -d "$(echo "$remapped" | sed '$s/"enforce_admins":true/"enforce_admins":false/')" > /dev/null

git push https://vaadin-bot:"$GITHUB_RELEASE_TOKEN"@github.com/"$REPO".git HEAD:$branch
git push https://vaadin-bot:"$GIT_RELEASE_TOKEN"@github.com/"$REPO".git HEAD:$branch

ghr -X PUT -d "$remapped" > /dev/null

0 comments on commit a6adc41

Please sign in to comment.