Skip to content

Commit

Permalink
fix ci for forked repo (#186)
Browse files Browse the repository at this point in the history
* fix ci

* fix

* fix

* fix

* fix

* test

* test

---------

Co-authored-by: Yan Chen <[email protected]>
  • Loading branch information
chenyan2002 and chenyan-dfinity authored Aug 2, 2023
1 parent 7af69bc commit 00aebe1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@ jobs:
strategy:
fail-fast: false
env:
DFX_VERSION: 0.14.2
DFX_VERSION: 0.14.3
IC_REPL_VERSION: 0.4.1
MOC_VERSION: 0.9.5
MOC_VERSION: 0.9.7
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -53,12 +50,16 @@ jobs:
- name: Start dfx
run: |
dfx start --background
- name: Checkout base branch
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'breaking_changes')
uses: actions/checkout@v3
with:
ref: ${{ github.base_ref }}
- name: Deploy main branch
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'breaking_changes')
run: |
git checkout main
dfx deploy backend
git checkout ${GITHUB_HEAD_REF}
- uses: actions/checkout@v3
- name: Deploy current branch
run: dfx deploy backend
- name: CanisterPool test
Expand Down

0 comments on commit 00aebe1

Please sign in to comment.