Skip to content

Commit 68b6ab6

Browse files
committed
xzdzss
1 parent 7b24cb6 commit 68b6ab6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/push-changes/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ runs:
3838
- name: Add changes from ${{ inputs.working-directory }}
3939
shell: bash
4040
run: |
41-
ls -R ${{ inputs.working-directory }}
41+
git fetch origin
4242
git config --global user.name "${{ github.actor }}"
4343
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
4444
git add -- ${{ inputs.working-directory }}
4545
- name: Check for changes in ${{ inputs.working-directory }}
4646
shell: bash
4747
run: |
48-
git diff origin/${{ inputs.target-branch }} --staged --quiet -- ${{ inputs.working-directory }}
48+
git diff ${{ github.head_ref || github.ref }} -- ${{ inputs.working-directory }} origin/${{ inputs.target-branch }} -- ${{ inputs.working-directory }} --staged --quiet
4949
continue-on-error: true
5050
id: check-diff
5151
- name: Push changes to ${{ inputs.target-branch }}, if exists

0 commit comments

Comments
 (0)