Skip to content

Commit d1e8fdf

Browse files
committed
lzhdxaoklxs
1 parent c1cd88f commit d1e8fdf

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,13 @@ jobs:
3434
outputs:
3535
is-release: ${{ startsWith(github.ref_name, 'release') }}
3636
is-preview: ${{ startsWith(github.ref_name, 'preview') }}
37-
notes-start-tag: ${{ steps.github.outputs.notes-start-tag }}
3837

3938
steps:
4039
- name: 'Set workflow variables'
4140
id: github
4241
run: |
4342
echo "is-release:${{ startsWith(github.ref_name, 'release') }}"
4443
echo "is-preview:${{ startsWith(github.ref_name, 'preview') }}"
45-
notes-start-tag=$(git describe --abbrev=0 --tags)
46-
echo "notes-start-tag=$notes-start-tag" >> $GITHUB_OUTPUT
4744
4845
validate-release:
4946
name: 'Validate release'
@@ -246,10 +243,17 @@ jobs:
246243
steps:
247244
- name: 'Checkout ${{ github.head_ref || github.ref }}'
248245
uses: actions/checkout@v5
246+
247+
- name: 'Determine notes start tag'
248+
id: determine-notes-start-tag
249+
run: |
250+
notes-start-tag=$(git describe --abbrev=0 --tags)
251+
echo "notes-start-tag=$notes-start-tag" >> $GITHUB_OUTPUT
252+
shell: bash
249253

250254
- name: 'Create GitHub Release'
251255
uses: ./.github/actions/github/create-release
252256
with:
253257
release-version: ${{ env.release-version }}
254258
is-preview: ${{ env.is-preview }}
255-
notes-start-tag: ${{ env.notes-start-tag }}
259+
notes-start-tag: ${{ steps.determine-notes-start-tag.outputs.notes-start-tag }}

0 commit comments

Comments
 (0)