mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
Enhance Build_mR-NB.yml with workflow_dispatch
Add manual dispatch option with release flag to workflow
This commit is contained in:
16
.github/workflows/Build_mR-NB.yml
vendored
16
.github/workflows/Build_mR-NB.yml
vendored
@@ -3,7 +3,14 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- v1.78.2-dev
|
||||
|
||||
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release_flag:
|
||||
description: 'Run NB release'
|
||||
required: false
|
||||
default: 'true'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
@@ -19,6 +26,13 @@ jobs:
|
||||
platform: ARM64
|
||||
arch: arm64
|
||||
runs-on: ${{ matrix.runner }}
|
||||
# Only run if:
|
||||
# - manual dispatch, OR
|
||||
# - push event AND commit message contains "NB release"
|
||||
if: >
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
(github.event_name == 'push' && contains(github.event.head_commit.message, 'NB release'))
|
||||
|
||||
steps:
|
||||
- name: (01) Checkout Repository
|
||||
uses: actions/checkout@v5
|
||||
|
||||
Reference in New Issue
Block a user