Skip to content

Commit

Permalink
split branches
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Jul 26, 2024
1 parent 4545b92 commit bf832a2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/plugin_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
fail-fast: false
matrix:
include:

- plugin: pynxtools-ellips
branches: [main]
tests_to_run: tests/.
Expand Down Expand Up @@ -64,10 +63,9 @@ jobs:
- name: Check if branch exists
id: check-branch
run: |
# Split the branches into an array
IFS=',' read -ra branches <<< "${{ matrix.branches }}"
branch_exists=false
IFS=',' read -ra branches <<< "${{ join(matrix.branches, ',') }}"
# Check each branch for existence
for branch in "${branches[@]}"; do
echo "Checking branch: $branch"
if git ls-remote --heads https://github.com/FAIRmat-NFDI/${{ matrix.plugin }}.git $branch | grep -q "refs/heads/$branch"; then
Expand Down

0 comments on commit bf832a2

Please sign in to comment.