diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ce66767..a294705 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,22 @@ name: update server run-name: Update locally hosted server -on: [push] +on: + workflow_run: + workflows: [pages build and deployment] + types: + - completed + jobs: + success: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} + steps: + - run: echo 'The First workflow completed successfully.' + failure: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'failure' }} + steps: + - run: echo 'The First workflow failed.' update: runs-on: ubuntu-latest steps: