Skip to content

Commit

Permalink
Update keywords-generator.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yceballost committed Oct 23, 2024
1 parent f01d75a commit 85285b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/keywords-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ jobs:
- name: Check for changes
id: git_status
run: |
git diff --exit-code || echo "changes"
git diff --quiet || echo "changes detected"
# Si no hay cambios, se marca el job como skipped.
- name: Skip if no changes
if: steps.git_status.outcome == 'changes'
run: echo "No changes detected, skipping the job." && exit 0

- name: Commit & Push in ${{ env.GITHUB_REF_SLUG_URL }}
if: steps.git_status.outputs.result == 'changes'
Expand Down

0 comments on commit 85285b8

Please sign in to comment.