Skip to content

Commit 1ae2327

Browse files
committed
no idea
1 parent ba57033 commit 1ae2327

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

action.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,18 @@ runs:
5656
set -e
5757
echo "Updating ${{inputs.project_file_name}} using schedule ${{inputs.schedule_path}}"
5858
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 and skip if none
59+
- name: Changes
6060
shell: bash
6161
run: |
6262
echo "Showing changes that would be committed"
6363
git --no-pager diff ${{ inputs.project_file_name }}
6464
if git diff --quiet ${{ inputs.project_file_name }}; then
65-
echo "No changes to commit"
66-
exit 0
65+
echo "changes_detected=false" >> $GITHUB_OUTPUT
66+
else
67+
echo "changes_detected=true" >> $GITHUB_OUTPUT
6768
fi
6869
- name: Create Pull Request
69-
if: ${{ inputs.create_pr == 'true' }}
70+
if: ${{ inputs.create_pr == 'true' }} && steps.Changes.outputs.changes_detected == 'true'
7071
uses: peter-evans/create-pull-request@v7
7172
with:
7273
token: ${{ inputs.token }}

0 commit comments

Comments
 (0)