Skip to content

Commit

Permalink
[skip ci] ci(ts-build): remove unnecessary step
Browse files Browse the repository at this point in the history
  • Loading branch information
riimuru authored Sep 13, 2024
1 parent 23aad0a commit 84a7453
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/push-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,13 @@ jobs:
- name: Setup Git
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "Rapid Stream Bot"
git config --global user.name "Distribution builder"
git config --global credential.helper store
echo "https://${{ secrets.USERNAME }}:${{ secrets.TOKEN }}@github.com" > ~/.git-credentials
shell: bash

- name: Check Diff
id: check_diff
run: |
git diff --quiet || status=$?
if [ $status -eq 0 ];
then
echo "push_changes=false" >> $GITHUB_OUTPUT
else
echo "push_changes=true" >> $GITHUB_OUTPUT
fi
shell: bash

- name: Push Changes
if: steps.check_diff.outputs.push_changes == 'true'
run: |
git add .
git commit -am "Compile TS"
git commit -am "chore(dist)"
git push

0 comments on commit 84a7453

Please sign in to comment.