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
|
||||
|
||||
# on:
|
||||
# push:
|
||||
# branches: [develop]
|
||||
# paths-ignore:
|
||||
# - 'README.md'
|
||||
# # - '.github/**'
|
||||
# pull_request:
|
||||
# branches: [develop]
|
||||
# paths-ignore:
|
||||
# - 'README.md'
|
||||
# # - '.github/**'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
branches: [develop]
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
# - '.github/**'
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: build
|
||||
types: [ completed ] #requested
|
||||
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
|
Reference in New Issue
Block a user