Update .github/workflows/deploy.yml
This commit is contained in:
34
.github/workflows/deploy.yml
vendored
34
.github/workflows/deploy.yml
vendored
@ -1,25 +1,23 @@
|
|||||||
name: Deploy Project
|
name: Deploy Project
|
||||||
|
|
||||||
# on:
|
on:
|
||||||
# push:
|
workflow_run:
|
||||||
# branches: [develop]
|
workflows: build
|
||||||
# paths-ignore:
|
types: [ completed ] #requested
|
||||||
# - 'README.md'
|
|
||||||
# # - '.github/**'
|
|
||||||
# pull_request:
|
|
||||||
# branches: [develop]
|
|
||||||
# paths-ignore:
|
|
||||||
# - 'README.md'
|
|
||||||
# # - '.github/**'
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
branches: [develop]
|
|
||||||
paths-ignore:
|
|
||||||
- 'README.md'
|
|
||||||
# - '.github/**'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
on-success:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
|
steps:
|
||||||
|
- run: echo "First workflow was a success"
|
||||||
|
|
||||||
|
on-failure:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||||
|
steps:
|
||||||
|
- 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' }}
|
||||||
|
Reference in New Issue
Block a user