fix(gha): remove workflow_run (#59840)

This commit is contained in:
Mrugesh Mohapatra
2025-04-21 17:08:58 +05:30
committed by GitHub
parent 08c12b6620
commit ed6c77e972
2 changed files with 2 additions and 35 deletions

View File

@@ -2,12 +2,6 @@ name: CD - Deploy API (Legacy) & Clients
on:
workflow_dispatch:
workflow_run:
workflows: [CI - Node.js]
types:
- completed
branches:
- prod-*
jobs:
setup-jobs:
@@ -22,17 +16,7 @@ jobs:
- name: Setup
id: setup
run: |
if [[ "${{ github.event_name }}" == "workflow_run" && "${{ github.event.workflow_run.conclusion }}" != "success" ]]; then
echo "Node.js tests failed in the triggering workflow run. Check logs in its workflow run. Exiting."
exit 1
fi
if [[ "${{ github.event_name }}" == "workflow_run" ]]; then
BRANCH="${{ github.event.workflow_run.head_branch }}"
else
BRANCH="${{ github.ref_name }}"
fi
BRANCH="${{ github.ref_name }}"
echo "Current branch: $BRANCH"
case "$BRANCH" in
"prod-current")

View File

@@ -11,12 +11,6 @@ on:
- info
- warn
default: info
workflow_run:
workflows: [CI - Node.js]
types:
- completed
branches:
- prod-*
jobs:
setup-jobs:
@@ -31,19 +25,8 @@ jobs:
- name: Setup
id: setup
run: |
if [[ "${{ github.event_name }}" == "workflow_run" && "${{ github.event.workflow_run.conclusion }}" != "success" ]]; then
echo "Node.js tests failed in the triggering workflow run. Check logs in its workflow run. Exiting."
exit 1
fi
if [[ "${{ github.event_name }}" == "workflow_run" ]]; then
BRANCH="${{ github.event.workflow_run.head_branch }}"
else
BRANCH="${{ github.ref_name }}"
fi
BRANCH="${{ github.ref_name }}"
echo "Current branch: $BRANCH"
case "$BRANCH" in
"prod-current")
echo "site_tld=org" >> $GITHUB_OUTPUT