66 types : [ submitted ]
77
88jobs :
9- calculate-xetabase-branch :
10- if : github.event.review.state == 'approved'
11- name : Calculate Xetabase branch
12- runs-on : ubuntu-22.04
13- outputs :
14- xetabase_branch : ${{ steps.get_xetabase_branch.outputs.xetabase_branch }}
15- steps :
16- - name : Clone java-common-libs
17- uses : actions/checkout@v4
18- with :
19- fetch-depth : ' 10'
20- # # This is important to avoid the error in the next step: "fatal: repository 'https://github.com/zetta-genomics/opencga-enterprise.git/' not found"
21- persist-credentials : false
22- - id : get_xetabase_branch
23- name : " Get current branch for Xetabase from target branch"
24- run : |
25- chmod +x ./.github/workflows/scripts/get-xetabase-branch.sh
26- echo "github.event.pull_request.base.ref: ${{ github.event.pull_request.base.ref }}"
27- echo "github.event.pull_request.head.ref: ${{ github.event.pull_request.head.ref }}"
28- xetabase_branch=$(./.github/workflows/scripts/get-xetabase-branch.sh ${{ github.event.pull_request.base.ref }})
29- echo "__Xetabase ref:__ \"${xetabase_branch}\"" | tee -a ${GITHUB_STEP_SUMMARY}
30- echo "xetabase_branch=${xetabase_branch}" >> $GITHUB_OUTPUT
31- env :
32- ZETTA_REPO_ACCESS_TOKEN : ${{ secrets.ZETTA_REPO_ACCESS_TOKEN }}
33-
349 test :
35- if : github.event.review.state == 'approved'
36- name : " Run all tests before merging"
37- needs : calculate-xetabase-branch
38- uses : opencb/java-common-libs/.github/workflows/test-xetabase-workflow.yml@develop
39- with :
40- branch : ${{ needs.calculate-xetabase-branch.outputs.xetabase_branch }}
41- task : ${{ github.event.pull_request.head.ref }}
10+ uses : ./.github/workflows/test-analysis.yml
4211 secrets : inherit
0 commit comments