Merge pull request #2216 from snir911/static_checks_fix

ci: static checks: use defined target_branch
This commit is contained in:
Fabiano Fidêncio
2021-07-13 10:17:15 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ jobs:
TRAVIS_PULL_REQUEST_BRANCH: ${{ github.head_ref }}
TRAVIS_PULL_REQUEST_SHA : ${{ github.event.pull_request.head.sha }}
RUST_BACKTRACE: "1"
target_branch: ${TRAVIS_BRANCH}
target_branch: ${{ github.base_ref }}
steps:
- name: Install Go
uses: actions/setup-go@v2

View File

@@ -5,7 +5,7 @@
export tests_repo="${tests_repo:-github.com/kata-containers/tests}"
export tests_repo_dir="$GOPATH/src/$tests_repo"
export branch="${branch:-main}"
export branch="${target_branch:-main}"
# Clones the tests repository and checkout to the branch pointed out by
# the global $branch variable.