Skip to content

Commit

Permalink
Bug fix in CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmudaf committed Jul 14, 2020
1 parent 799ad32 commit 356905f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/compile-and-test/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ set -e

verbosecommand "cd /openfast"

repo="OpenFAST"
echo "GITHUB_EVENT_NAME: ${GITHUB_EVENT_NAME}"
if [[ "${GITHUB_EVENT_NAME}" != "pull_request" ]]; then
repo=${GITHUB_ACTOR}
fi
# Create a branch "CI" at the current commit from the GH Actor's fork.
verbosecommand "git fetch https://github.com/${GITHUB_ACTOR}/openfast ${GITHUB_REF}:CI"
verbosecommand "git fetch https://github.com/${repo}/openfast ${GITHUB_REF}:CI"
verbosecommand "git checkout CI"
verbosecommand "git submodule update"

Expand Down

0 comments on commit 356905f

Please sign in to comment.