File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
.github/actions/push-changes Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments