We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a467653 commit ba57033Copy full SHA for ba57033
1 file changed
action.yaml
@@ -56,11 +56,15 @@ runs:
56
set -e
57
echo "Updating ${{inputs.project_file_name}} using schedule ${{inputs.schedule_path}}"
58
pixi run --manifest-path ${{ github.action_path }}/pyproject.toml update-dependencies "${{ github.workspace }}/${{ inputs.project_file_name }}" "${{ github.workspace }}/${{ inputs.schedule_path }}"
59
- - name: Show changes
+ - name: Show changes and skip if none
60
shell: bash
61
run: |
62
echo "Showing changes that would be committed"
63
git --no-pager diff ${{ inputs.project_file_name }}
64
+ if git diff --quiet ${{ inputs.project_file_name }}; then
65
+ echo "No changes to commit"
66
+ exit 0
67
+ fi
68
- name: Create Pull Request
69
if: ${{ inputs.create_pr == 'true' }}
70
uses: peter-evans/create-pull-request@v7
0 commit comments