Skip to content

Commit 6d67e83

Browse files
Update new_wokflow_test.yml
1 parent 25099ef commit 6d67e83

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed
Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: Check Release Branch Names
22

33
on:
4-
workflow_dispatch: # Allows manual triggering of the workflow
5-
4+
workflow_run:
5+
workflows: ["Single Tenant Deploy and Integration Test"]
6+
types: [completed]
7+
workflow_dispatch:
68
jobs:
79
check_release_branches:
10+
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
811
runs-on: ubuntu-latest
912

1013
steps:
@@ -13,13 +16,4 @@ jobs:
1316

1417
- name: List Release branches
1518
run: |
16-
# Fetch all branches
17-
branches=$(git branch -r | grep 'origin/Release')
18-
19-
# Check if any branches were found
20-
if [ -n "$branches" ]; then
21-
echo "Branches starting with 'Release':"
22-
echo "$branches"
23-
else
24-
echo "No branches starting with 'Release' found."
25-
fi
19+
echo "Downstream job completed successfully"

0 commit comments

Comments
 (0)