Skip to content

Commit

Permalink
Merge pull request wtsi-npg#783 from mgcam/branch_propagation_in_ci
Browse files Browse the repository at this point in the history
Correct propagation of the CI target branch.
  • Loading branch information
jmtcsngr authored Nov 29, 2023
2 parents ccca100 + f4dd641 commit 4151537
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
env:
PERL_CACHE: ~/perl5 # Perlbrew and CPAN modules installed here, cached
NPG_LIB: ~/perl5npg # NPG modules installed here, not cached
WTSI_NPG_GITHUB_URL: https://github.com/wtsi-npg
WTSI_NPG_BUILD_BRANCH: ${GITHUB_HEAD_REF}
WSI_NPG_GITHUB_URL: https://github.com/wtsi-npg
WSI_NPG_BUILD_BRANCH: ${{ github.base_ref || github.ref }}


strategy:
Expand Down
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ LIST OF CHANGES
'analysis'). The duplicate runfolder in 'incoming' is disregarded'.
- DRAGEN samplesheet generation - limit analysis to human samples only.
- Fixed incorrect string comparison in the npg_move_runfolder script.
- Ensure that pull requests to the master branch source dependencies from
master branches (devel branch was hardcoded).

release 97.0.2
- pin DBD::mysql to 4.050 to keep temp support for old mysql clients
Expand Down
5 changes: 3 additions & 2 deletions scripts/install_wsi_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ for repo in "$@" ; do
cd "/tmp/${repo}.git"

# Shift off master to appropriate branch (if possible)
echo "Want to switch to branch $WSI_NPG_BUILD_BRANCH"
git ls-remote --heads --exit-code origin "$WSI_NPG_BUILD_BRANCH" && \
git pull origin "$WSI_NPG_BUILD_BRANCH" && \
echo "Switched to branch $WSI_NPG_BUILD_BRANCH"
git pull origin "$WSI_NPG_BUILD_BRANCH" && \
echo "Switched to branch $WSI_NPG_BUILD_BRANCH"
repos="$repos /tmp/${repo}.git"
done

Expand Down

0 comments on commit 4151537

Please sign in to comment.