Skip to content

Commit

Permalink
check in refs/heads/ for the branch, use mpes feature branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Jul 16, 2024
1 parent 0d95e3d commit 01fba79
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/plugin_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
tests_to_run: tests/.
- plugin: pynxtools-mpes
branches:
- update-to-new-nxmpes
- main
tests_to_run: tests/.
- plugin: pynxtools-stm
Expand Down Expand Up @@ -71,13 +72,13 @@ jobs:
id: check-branch
run: |
branch_exists=false
for branch in ${{ matrix.branches }}; do
if git ls-remote --heads https://github.com/FAIRmat-NFDI/${{ matrix.plugin }}.git $branch | grep $branch; then
echo "Branch $branch exists."
echo "::set-output name=branch::$branch"
branch_exists=true
break
fi
for branch in "${{ matrix.branches }}"; do
if git ls-remote --heads https://github.com/FAIRmat-NFDI/${{ matrix.plugin }}.git "$branch" | grep -q "refs/heads/$branch"; then
echo "Branch $branch exists."
echo "branch=$branch" >> $GITHUB_ENV
branch_exists=true
break
fi
done
if [ "$branch_exists" = "false" ]; then
echo "No branches exist."
Expand Down

0 comments on commit 01fba79

Please sign in to comment.