From 01fba79dca25d7b02624cccceb714d0f35893cf7 Mon Sep 17 00:00:00 2001 From: Lukas Pielsticker <50139597+lukaspie@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:58:08 +0200 Subject: [PATCH] check in refs/heads/ for the branch, use mpes feature branch --- .github/workflows/plugin_test.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/plugin_test.yaml b/.github/workflows/plugin_test.yaml index 35fb2111d..8f03b18a0 100644 --- a/.github/workflows/plugin_test.yaml +++ b/.github/workflows/plugin_test.yaml @@ -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 @@ -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."