Skip to content

Commit

Permalink
chore: Refactor compile_code_and_modules.yml workflow to check for ch…
Browse files Browse the repository at this point in the history
…anges before committing
  • Loading branch information
salahhusa9 committed Aug 2, 2024
1 parent eca5bf8 commit 3301e62
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/compile_code_and_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ jobs:
- name: Build
run: npm run build

- name: commit changes
- name: Check for changes
id: git-check
run: |
git diff --quiet || echo "::set-output name=changes::true"
- name: Commit changes
if: steps.git-check.outputs.changes == 'true'
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
Expand Down

0 comments on commit 3301e62

Please sign in to comment.