mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-08 22:24:17 +08:00
Updated Deploy and Test Branch to have a manual trigger
This commit is contained in:
parent
021cebdd09
commit
1bb3492060
1 changed files with 7 additions and 2 deletions
9
.github/workflows/branchtest.yml
vendored
9
.github/workflows/branchtest.yml
vendored
|
@ -2,6 +2,11 @@ name: Deploy and Test Branch
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
branches:
|
||||||
|
description: 'Branch to deploy and test'
|
||||||
|
required: true
|
||||||
|
default: 'develop'
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
branches: [develop]
|
branches: [develop]
|
||||||
|
@ -28,7 +33,7 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: gravitl/netclient
|
repository: gravitl/netclient
|
||||||
ref: develop
|
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.branch || 'develop' }}
|
||||||
- name: check if branch exists
|
- name: check if branch exists
|
||||||
id: getbranch
|
id: getbranch
|
||||||
run: |
|
run: |
|
||||||
|
@ -45,6 +50,6 @@ jobs:
|
||||||
needs: [getbranch, skip-check]
|
needs: [getbranch, skip-check]
|
||||||
with:
|
with:
|
||||||
netclientbranch: ${{ needs.getbranch.outputs.netclientbranch }}
|
netclientbranch: ${{ needs.getbranch.outputs.netclientbranch }}
|
||||||
netmakerbranch: ${{ github.head_ref }}
|
netmakerbranch: ${{ github.event_name == 'workflow_dispatch' && inputs.branch || github.head_ref }}
|
||||||
tag: ${{ github.run_id }}-${{ github.run_attempt }}
|
tag: ${{ github.run_id }}-${{ github.run_attempt }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
Loading…
Add table
Reference in a new issue