This commit is contained in:
@@ -1,4 +1,12 @@
|
|||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
# only if commit message starts with "release"
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
# and commit message contains "release"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
release_notes:
|
release_notes:
|
||||||
@@ -24,6 +32,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: "contains(github.event.head_commit.message, 'release') || github.event_name == 'workflow_dispatch'"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user