Skip to content

Commit

Permalink
Merge pull request #3114 from gravitl/NET-1518
Browse files Browse the repository at this point in the history
manual trigger of workflow
  • Loading branch information
abhishek9686 committed Sep 9, 2024
2 parents 40ebcf4 + fa1cbfc commit b13f4be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/branchtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy and Test Branch
on:
workflow_dispatch:
inputs:
branches:
branch:
description: 'Branch to deploy and test'
required: true
default: 'develop'
Expand Down Expand Up @@ -37,6 +37,11 @@ jobs:
- name: check if branch exists
id: getbranch
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
BRANCH="${{ github.event.inputs.branch }}"
else
BRANCH="${{ github.head_ref }}"
fi
if git show-ref ${{ github.head_ref}}; then
echo branch exists
echo "netclientbranch=${{ github.head_ref }}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit b13f4be

Please sign in to comment.