Skip to content

Commit

Permalink
update actions/checkout to v2 (#1758)
Browse files Browse the repository at this point in the history
Co-authored-by: Song Gao <disxiaofei@163.com>
  • Loading branch information
cofyc and Yisaer authored Feb 25, 2020
1 parent 271cad3 commit eca3b3b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ jobs:
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
fetch-depth: 1
path: go/src/github.com/pingcap/tidb-operator
ref: ${{ github.event.pull_request.head.sha }}
path: go/src/github.com/${{ github.repository }}

- name: make ${{ matrix.target }}
run: |
# workaround for https://github.com/actions/setup-go/issues/14
export GOPATH=/home/runner/work/tidb-operator/go
export GOPATH=${GITHUB_WORKSPACE}/go
export PATH=$PATH:$GOPATH/bin
make $target
working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
env:
target: ${{ matrix.target }}

0 comments on commit eca3b3b

Please sign in to comment.