Skip to content

Commit 0234017

Browse files
authored
Update release.yml
1 parent be61eeb commit 0234017

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ on:
88
types:
99
- closed
1010

11-
workflow_dispatch:
11+
workflow_dispatch:
1212

1313
jobs:
1414
release:
1515
name: 🎁 Publish new release
16-
if: github.event.pull_request.merged == true # only merged pull requests must trigger this job
16+
if: github.ref == 'refs/heads/stable' || github.event.pull_request.merged == true # only merged pull requests must trigger this job
1717
runs-on: ubuntu-latest
1818
steps:
1919

@@ -60,7 +60,6 @@ jobs:
6060
env:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6262
with:
63-
target_commitish: ${{ GITHUB_SHA }}
6463
tag_name: v${{ env.NBGV_SimpleVersion }}
6564
name: Release ${{ env.NBGV_SimpleVersion }}
6665
body: ${{ steps.changelog_reader.outputs.changes }}

0 commit comments

Comments
 (0)