mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-25 02:14:11 -05:00
fix(gha): remove workflow_run (#59840)
This commit is contained in:
committed by
GitHub
parent
08c12b6620
commit
ed6c77e972
18
.github/workflows/deploy-legacy.yml
vendored
18
.github/workflows/deploy-legacy.yml
vendored
@@ -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")
|
||||
|
||||
19
.github/workflows/deploy.yml
vendored
19
.github/workflows/deploy.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user