Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RamanaReddy0M committed Mar 14, 2024
1 parent e7a6413 commit edd48b6
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/compile-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,13 @@ jobs:
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git status
git add dist/
git diff --quiet && git diff --staged --quiet || git commit -m "Update dist with compiled changes"
git diff --quiet && git diff --staged --quiet || git commit -m "compile latest changes"
if [ $? -eq 0 ]; then echo "CHANGES=true" >> $GITHUB_ENV; fi
- name: Push changes
if: env.CHANGES == 'true'
run: |
git status
echo "there are changes"
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: ${{ github.ref }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

0 comments on commit edd48b6

Please sign in to comment.