Skip to content

Commit f147e21

Browse files
authored
Merge pull request #457 from gravitl/NET-1518
Updated testdeploybranch and terraform to have a manual trigger
2 parents 4a0cd30 + c9cdb22 commit f147e21

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

.DS_Store

-8 KB
Binary file not shown.

.github/workflows/terraform.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252
- name: Quick Check
5353
id: quickcheck
5454
run: |
55+
echo "netmakerbranch: ${{ inputs.netmakerbranch }}"
56+
echo "netclientbranch: ${{ inputs.netclientbranch }}"
5557
wget -O nm-quick-develop.sh https://raw.githubusercontent.com/gravitl/netmaker/develop/scripts/nm-quick.sh
5658
wget -O nm-quick-branch.sh https://raw.githubusercontent.com/gravitl/netmaker/${{ inputs.netmakerbranch }}/scripts/nm-quick.sh
5759
diff ./nm-quick-develop.sh ./nm-quick-branch.sh > output.txt || echo "There is a difference between the two files" > output.txt

.github/workflows/testdeploybranch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
uses: ./.github/workflows/terraform.yml
8585
with:
8686
netclientbranch: ${{ inputs.netclientbranch }}
87-
netmakerbranch: ${{ inputs.netmakerbranch }}
87+
netmakerbranch: ${{ github.event_name == 'workflow_dispatch' && inputs.branch || github.head_ref }}
8888
server: ${{ needs.getserver.outputs.server }}
8989
secrets: inherit
9090

0 commit comments

Comments
 (0)