Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #468 from EOSIO/cicd-actions-fix-r1.9
Browse files Browse the repository at this point in the history
[1.9.x] Actions rerun fixes.
  • Loading branch information
scottarnette authored Feb 27, 2020
2 parents f433801 + 72a6bdd commit a3c21e7
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
name: Pull Request
on: [pull_request]

env:
PR_NUMBER: ${{ toJson(github.event.number) }}

jobs:
ubuntu-1804-build:
if: github.event.pull_request.base.repo.id != github.event.pull_request.head.repo.id
name: Ubuntu 18.04 | Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
with:
submodules: recursive
run: |
git clone https://github.com/${GITHUB_REPOSITORY} .
git fetch -v --prune origin +refs/pull/${PR_NUMBER}/merge:refs/remotes/pull/${PR_NUMBER}/merge
git checkout --force --progress refs/remotes/pull/${PR_NUMBER}/merge
git submodule sync --recursive
git submodule update --init --force --recursive
- name: Build
run: |
./.cicd/build.sh
Expand All @@ -26,9 +32,12 @@ jobs:
needs: ubuntu-1804-build
steps:
- name: Checkout
uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
with:
submodules: recursive
run: |
git clone https://github.com/${GITHUB_REPOSITORY} .
git fetch -v --prune origin +refs/pull/${PR_NUMBER}/merge:refs/remotes/pull/${PR_NUMBER}/merge
git checkout --force --progress refs/remotes/pull/${PR_NUMBER}/merge
git submodule sync --recursive
git submodule update --init --force --recursive
- name: Download Build Artifact
uses: actions/download-artifact@v1
with:
Expand Down

0 comments on commit a3c21e7

Please sign in to comment.