Skip to content

Commit e75a65a

Browse files
committed
updated
1 parent ff0de35 commit e75a65a

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ inputs:
2424
runs:
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 }}

.github/workflows/publish-documentation.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions:
1515
id-token: write
1616

1717
concurrency:
18-
group: documentation-${{ github.head_ref || github.ref }}
18+
group: publish-docs-${{ github.head_ref || github.ref }}
1919
cancel-in-progress: true
2020

2121
jobs:
@@ -24,10 +24,7 @@ jobs:
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'

0 commit comments

Comments
 (0)