Update .github/workflows/CD.yml
This commit is contained in:
34
.github/workflows/CD.yml
vendored
34
.github/workflows/CD.yml
vendored
@ -1,5 +1,17 @@
|
|||||||
name: Deploy Project
|
name: Deploy Project
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
Version:
|
||||||
|
description: application version that you are deploying
|
||||||
|
required: true
|
||||||
|
# GITHUB_TOKEN:
|
||||||
|
# description: token used to call workflow
|
||||||
|
# required: true
|
||||||
|
Branch:
|
||||||
|
description: github branch where CD workflow is supposed to run
|
||||||
|
required: false
|
||||||
|
default: develop
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
branches:
|
branches:
|
||||||
@ -18,21 +30,21 @@ on:
|
|||||||
# required: true
|
# required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
on-success:
|
# on-success:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
steps:
|
# steps:
|
||||||
- run: echo "First workflow was a success"
|
# - run: echo "First workflow was a success"
|
||||||
|
|
||||||
on-failure:
|
# on-failure:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||||
steps:
|
# steps:
|
||||||
- run: echo "First workflow was a failure"
|
# - run: echo "First workflow was a failure"
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user