File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ inputs:
2424runs :
2525 using : " composite"
2626 steps :
27- - name : ' Checkout ${{ github.ref }}'
27+ - name : ' Checkout ${{ github.head_ref || github. ref }}'
2828 uses : actions/checkout@v4
2929
3030 - name : Dotnet Setup
@@ -83,15 +83,14 @@ runs:
8383 set -e
8484 working-directory : ${{ inputs.working-directory }}
8585
86- - name : Push changes to ${{ github.ref }}
86+ - name : Push changes to ${{ github.head_ref || github. ref }}
8787 if : ${{ fromJSON(steps.validate.outputs.has-changes) == '1' }}
8888 shell : bash
8989 run : |
9090 git config user.name "$(git log -n 1 --pretty=format:%an)"
9191 git config user.email "$(git log -n 1 --pretty=format:%ae)"
9292 git commit -m '${{ inputs.commit-message }}'
93- git pull origin ${{ github.ref }} --rebase
94- git push origin ${{ github.ref }}
93+ git push origin ${{ github.head_ref || github.ref }}
9594 working-directory : ${{ inputs.working-directory }}
9695
9796 # - name: Add changes from ${{ inputs.working-directory }}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ permissions:
1515 id-token : write
1616
1717concurrency :
18- group : documentation -${{ github.head_ref || github.ref }}
18+ group : publish-docs -${{ github.head_ref || github.ref }}
1919 cancel-in-progress : true
2020
2121jobs :
2424 runs-on : ubuntu-latest
2525
2626 outputs :
27- github-run-id : ${{ github.run_id }}
2827 github-run-number : ${{ github.run_number }}
29- is-release : ${{ startsWith(github.ref_name, 'release') }}
30- is-preview : ${{ startsWith(github.ref_name, 'preview') }}
3128
3229 steps :
3330 - name : ' Global variables'
You can’t perform that action at this time.
0 commit comments