Skip to content

Commit

Permalink
token-updater: final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Dec 2, 2021
1 parent 5aa79a5 commit 52e10d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/tokens-updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -o pipefail
set -u

PR_COUNT=$(gh pr list --json id --label "tokens" --jq length -s open)
PR_COUNT=$(gh pr list --json id --label "design-tokens-autoupdate" --jq length -s open)

if [[ $PR_COUNT -ne 0 ]]; then
echo "Design Tokens Update pull-request is already created."
Expand All @@ -27,6 +27,6 @@ git commit -m "tokens: update icons on $TODAY"
ICONS_STATE=$?

if [[ $COLORS_STATE == 0 ]] || [[ $ICONS_STATE == 0 ]]; then
git push origin "$BRANCH"
gh pr create --title "Design Tokens Update on $TODAY" --body "" --label "tokens" --base "main" --head "$BRANCH"
git push -f origin "$BRANCH"
gh pr create --title "Design Tokens Update on $TODAY" --body "" --label "design-tokens-autoupdate" --label "feature" --base "main" --head "$BRANCH"
fi

0 comments on commit 52e10d3

Please sign in to comment.