Skip to content

Commit

Permalink
Update commands.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
romw314 authored Dec 8, 2023
1 parent e7ff890 commit 63e533c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ jobs:
run: |
err=0
echo 'logs<<EOF' >> "$GITHUB_OUTPUT"
node scripts/add-new-theme.cjs "$(jq <<< "$THEMEINFO" ".$PROP=$GOOD" 2>> "$GITHUB_OUTPUT" || err=1)" &>> "$GITHUB_OUTPUT"
echo '==============================' &>> "$GITHUB_OUTPUT"
( cat themes.new.json | jq --tab . | tee src/themes.json ) &>> "$GITHUB_OUTPUT" || err=1
{ node scripts/add-new-theme.cjs "$(jq <<< "$THEMEINFO" ".$PROP=$GOOD" 2>> "$GITHUB_OUTPUT" || err=1)" 2>&1 || err=1; } | tee -a "$GITHUB_OUTPUT"
[ err -ne 0 ] && exit "$err"
echo '==============================' | tee -a "$GITHUB_OUTPUT"
{ cat themes.new.json | { jq --tab . || err=1; } | tee src/themes.json; } 2>&1 | tee -a "$GITHUB_OUTPUT" || err=1
[ err -ne 0 ] && exit "$err"
echo >> "$GITHUB_OUTPUT" # ensure newline at the end
echo 'EOF' >> "$GITHUB_OUTPUT"
exit "$err"
Expand All @@ -82,7 +84,7 @@ jobs:
id: gitconfig
run: |
echo 'logs<<EOF' >> "$GITHUB_OUTPUT"
( git config --global user.name "$GNAME" && git config --global user.email "$GEMAIL" ) &>> "$GITHUB_OUTPUT"
( git config --global user.name "$GNAME" && git config --global user.email "$GEMAIL" ) 2>&1 | tee -a "$GITHUB_OUTPUT"
echo >> "$GITHUB_OUTPUT" # ensure newline at the end
echo 'EOF' >> "$GITHUB_OUTPUT"
env:
Expand All @@ -92,9 +94,9 @@ jobs:
id: commit
run: |
echo 'logs<<EOF' >> "$GITHUB_OUTPUT"
git add src/themes.json &>> "$GITHUB_OUTPUT"
git commit -m"Update $PROP to $GOOD" &>> "$GITHUB_OUTPUT"
git push &>> "$GITHUB_OUTPUT"
git add src/themes.json 2>&1 | tee -a "$GITHUB_OUTPUT"
git commit -m"Update $PROP to $GOOD" 2>&1 | tee -a "$GITHUB_OUTPUT"
git push 2>&1 | tee -a "$GITHUB_OUTPUT"
echo >> "$GITHUB_OUTPUT" # ensure newline at the end
echo 'EOF' >> "$GITHUB_OUTPUT"
env:
Expand Down

1 comment on commit 63e533c

@vercel
Copy link

@vercel vercel bot commented on 63e533c Dec 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

chess-no-25-docs – ./

chess-no-25-docs-romw314.vercel.app
chess-no-25-docs-git-master-romw314.vercel.app
chess-no-25-docs.vercel.app

Please sign in to comment.