Skip to content

Commit

Permalink
Make depoyments depend on success of test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofziobro committed Nov 11, 2023
1 parent 266395d commit bc4064f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy-azero-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
name: Bridgenet - deploy azero contracts

on:
push:
branches:
- 'master'
workflow_run:
workflows: ["Ink! tests"]
types: [completed]
branches: [master]

jobs:
compile:
name: Compile and deploy contracts
runs-on: self-hosted
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/deploy-eth-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
name: Bridgenet - deploy eth contracts

on:
push:
branches:
- 'master'
workflow_run:
workflows: ["Solidity tests"]
types: [completed]
branches: [master]

jobs:
compile:
name: Compile and deploy contracts
runs-on: self-hosted
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -27,4 +29,4 @@ jobs:

- name: Deploy contracts
shell: bash
run: make deploy-eth NETWORK=bridgenet
run: make deploy-eth NETWORK=bridgenet

0 comments on commit bc4064f

Please sign in to comment.