Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
[WEAV-000] dev server cd trigger by ci (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
dojinyou authored May 1, 2024
1 parent 7fd146c commit 2454c58
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/develop_server_deployer.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Develop Server Deployer (CD)

on:
workflow_run:
workflows: ["Develop Server Integrator (CI)"]
branches: [main]
types:
- completed
workflow_dispatch:
inputs:
version:
Expand All @@ -10,7 +15,7 @@ on:

jobs:
deploy:
needs: validate_version
needs: [validate_version, check_ci_success]
runs-on: ubuntu-latest
environment: DEV
steps:
Expand Down Expand Up @@ -158,3 +163,13 @@ jobs:
echo "Invalid version format. Use 'latest' or semver format (e.g., 0.2411.135)"
exit 1
fi
check_ci_success:
needs: validate_version
runs-on: ubuntu-latest
steps:
- name: Check CI
if: ${{ github.event.workflow_run != null && github.event.workflow_run.conclusion != 'success' }}
run: |
echo "CI failed"
exit 1

0 comments on commit 2454c58

Please sign in to comment.