Update .github/workflows/deploy.yml
This commit is contained in:
29
.github/workflows/deploy.yml
vendored
29
.github/workflows/deploy.yml
vendored
@ -1,22 +1,22 @@
|
||||
name: Deploy Project
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: build
|
||||
types: [ completed ] #requested
|
||||
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-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"
|
||||
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
|
||||
@ -41,4 +41,3 @@ jobs:
|
||||
run: |
|
||||
ssh -tt -o StrictHostKeyChecking=no gitea@${{secrets.SSH_HOST}} 'whoami'
|
||||
|
||||
#
|
||||
|
Reference in New Issue
Block a user