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 be8975b commit a4a2e4a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ jobs:
- name: Build project
run: npm run build

- name: Configure Git
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Commit changes
id: commit-changes
run: |
git status
git add dist/
git diff --quiet && git diff --staged --quiet || git commit -m "Update dist with compiled changes"
echo "::set-output name=CHANGES::$(git rev-parse HEAD)"
if [ $? -eq 0 ]; then echo "CHANGES=true" >> $GITHUB_ENV; fi
- name: Push changes
if: steps.commit-changes.outputs.CHANGES
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
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 }}
48 changes: 0 additions & 48 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit a4a2e4a

Please sign in to comment.