Skip to content

Commit 5155352

Browse files
authored
Set timeout to 45 minutes and upload release notes
1 parent 62a0820 commit 5155352

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/create-release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ jobs:
144144
contents: read
145145
id-token: write
146146
runs-on: ubuntu-slim
147+
timeout-minutes: 45
147148

148149
steps:
149150
- uses: actions/checkout@v6
@@ -349,10 +350,16 @@ jobs:
349350
350351
cat ./CHANGELOG.latest.md | tee --append ./release.txt
351352
353+
- uses: actions/upload-artifact@v7
354+
with:
355+
name: release-notes
356+
path: ./release.txt
357+
352358
- env:
353359
# Use actions/create-github-app-token if create release would need to trigger another workflow.
354360
GH_TOKEN: ${{ github.token }}
355361
id: release
362+
if: '!inputs.skip-release'
356363
name: Create release
357364
# Do not upload assets while creating release, otherwise, it will not trigger "release created" event.
358365
run: |
@@ -369,6 +376,7 @@ jobs:
369376
echo tag=$TAG | tee --append $GITHUB_OUTPUT
370377
- env:
371378
GH_TOKEN: ${{ github.token }}
379+
if: '!inputs.skip-release'
372380
name: Upload assets
373381
run: |
374382
gh release upload ${{ steps.release.outputs.tag }} \

0 commit comments

Comments
 (0)