Skip to content

Commit

Permalink
chore(frontend): remove unnecessary output (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lodin authored Sep 3, 2021
1 parent 735cf0b commit 30b68b4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions frontend/scripts/bump.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/usr/bin/env bash

alias ghr="curl https://api.github.com/repos/$REPO/branches/main/protection \
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_TOKEN'"
-H 'Authorization: token $GITHUB_TOKEN' \
-s"

node scripts/update-package-versions.js "$VERSION_TAG"

Expand All @@ -17,8 +21,8 @@ protection_config=$(ghr -X GET)

remapped=$(node scripts/protection-remap.js "$protection_config")

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

git push origin HEAD:main
git push origin HEAD:$branch

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

0 comments on commit 30b68b4

Please sign in to comment.