Skip to content

Commit

Permalink
Fix get-opencga-xetabase-branch.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfeSanahuja committed Oct 11, 2024
1 parent 0c17d64 commit 853f3b8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/test-xetabase-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,8 @@ jobs:
- id: get_opencga_branch
name: Get OpenCGA branch
run: |
# If the task exists in the opencga repository, this is the branch to be tested
if [[ "${{ inputs.task }}" == TASK* ]]; then
if [ "$(git ls-remote "https://github.com/opencb/opencga.git" "${{ inputs.task }}")" ]; then
opencga_branch="${{ inputs.task }}";
fi
else
chmod +x ./opencga-enterprise/.github/workflows/scripts/get-opencga-xetabase-branch.sh
opencga_branch=$(./opencga-enterprise/.github/workflows/scripts/get-opencga-xetabase-branch.sh "${{ inputs.task }}")
fi
chmod +x ./opencga-enterprise/.github/workflows/scripts/get-opencga-xetabase-branch.sh
opencga_branch=$(./opencga-enterprise/.github/workflows/scripts/get-opencga-xetabase-branch.sh "${{ inputs.task }}")
echo "opencga_branch=${opencga_branch}"
echo "opencga_branch=${opencga_branch}" >> $GITHUB_OUTPUT
- name: Clone OpenCGA branch '${{ steps.get_opencga_branch.outputs.opencga_branch }}'
Expand Down

0 comments on commit 853f3b8

Please sign in to comment.