Skip to content

Commit 957ac3b

Browse files
Merge branch 'release-6.x.x' into TASK-7843
2 parents 92e40df + b95a575 commit 957ac3b

31 files changed

Lines changed: 2016 additions & 215 deletions

File tree

.github/workflows/build-java-app-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
jobs:
1919
build-workflow:
2020
name: Build Java app
21-
runs-on: ubuntu-22.04
21+
runs-on: ${{ vars.UBUNTU_VERSION }}
2222
outputs:
2323
version: ${{ steps.get_project_version.outputs.version }}
2424
steps:

.github/workflows/delete-docker-hub-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
jobs:
1616
delete-docker-hub:
1717
name: Delete Docker Hub image
18-
runs-on: ubuntu-22.04
18+
runs-on: ${{ vars.UBUNTU_VERSION }}
1919
steps:
2020
- uses: docker/login-action@v2
2121
with:

.github/workflows/deploy-docker-hub-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525
jobs:
2626
deploy-docker-hub:
2727
name: Push Docker image
28-
runs-on: ubuntu-22.04
28+
runs-on: ${{ vars.UBUNTU_VERSION }}
2929
steps:
3030
- name: "Checkout optional repo"
3131
uses: actions/checkout@v4

.github/workflows/deploy-maven-repository-workflow.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ on:
77
type: string
88
required: false
99
secrets:
10-
MAVEN_NEXUS_USER:
11-
required: true
12-
MAVEN_NEXUS_PASSWORD:
13-
required: true
1410
MAVEN_GPG_PASSPHRASE:
1511
required: true
1612
MAVEN_GPG_PRIVATE_KEY:
@@ -19,7 +15,7 @@ on:
1915
jobs:
2016
deploy-workflow:
2117
name: Deploy to Maven and GitHub Packages
22-
runs-on: ubuntu-22.04
18+
runs-on: ${{ vars.UBUNTU_VERSION }}
2319
steps:
2420
- uses: actions/checkout@v4
2521
with:

.github/workflows/deploy-python-workflow.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,18 @@ on:
1818
jobs:
1919
pypi:
2020
name: Deploy Python package in PyPI
21-
runs-on: ubuntu-22.04
21+
runs-on: ${{ vars.UBUNTU_VERSION }}
2222
steps:
2323
- uses: actions/download-artifact@v4
2424
if: ${{ inputs.artifact }}
2525
with:
2626
name: ${{ inputs.artifact }}
2727
- name: Chmod
2828
run: chmod +x ./clients/python/*sh
29+
- name: Upgrade pip tools to compatible versions
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install --upgrade setuptools packaging
2933
- name: Build Python package for PyPI
3034
env:
3135
TWINE_USERNAME: ${{ secrets.PYPI_TWINE_USER }}

.github/workflows/manual-deploy-maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
checkout:
1212
name: Build Java app
13-
runs-on: ubuntu-22.04
13+
runs-on: ${{ vars.UBUNTU_VERSION }}
1414
steps:
1515
- uses: actions/checkout@v4
1616
with:

.github/workflows/publish-test-report-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Reusable workflow to push in DockerHub
1+
name: Publish test report workflow
22

33
on:
44
workflow_call:
@@ -22,7 +22,7 @@ on:
2222
jobs:
2323
publish-test-report:
2424
name: Publish test report
25-
runs-on: ubuntu-22.04
25+
runs-on: ${{ vars.UBUNTU_VERSION }}
2626
steps:
2727
- uses: actions/download-artifact@v4
2828
with:

.github/workflows/pull-request-approved.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
calculate-xetabase-branch:
1010
if: github.event.review.state == 'approved'
1111
name: Calculate Xetabase branch
12-
runs-on: ubuntu-22.04
12+
runs-on: ${{ vars.UBUNTU_VERSION }}
1313
outputs:
1414
xetabase_branch: ${{ steps.get_xetabase_branch.outputs.xetabase_branch }}
1515
steps:
@@ -26,7 +26,7 @@ jobs:
2626
echo "github.event.pull_request.base.ref: ${{ github.event.pull_request.base.ref }}"
2727
echo "github.event.pull_request.head.ref: ${{ github.event.pull_request.head.ref }}"
2828
echo "secrets.ZETTA_REPO_ACCESS_TOKEN: ${{ secrets.ZETTA_REPO_ACCESS_TOKEN }}"
29-
xetabase_branch=$(./.github/workflows/scripts/get-xetabase-branch.sh ${{ github.event.pull_request.base.ref }})
29+
xetabase_branch=$(./.github/workflows/scripts/get-xetabase-branch.sh ${{ github.event.pull_request.base.ref }} ${{ github.event.pull_request.head.ref }})
3030
echo "__Xetabase ref:__ \"${xetabase_branch}\"" | tee -a ${GITHUB_STEP_SUMMARY}
3131
echo "xetabase_branch=${xetabase_branch}" >> $GITHUB_OUTPUT
3232
env:

.github/workflows/release-github-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ on:
1313
jobs:
1414
release-workflow:
1515
name: Create GitHub Release
16-
runs-on: ubuntu-22.04
16+
runs-on: ${{ vars.UBUNTU_VERSION }}
1717
steps:
1818
- uses: actions/download-artifact@v4
1919
if: ${{ inputs.artifact }}
2020
with:
2121
name: ${{ inputs.artifact }}
2222
- name: GitHub Release
23-
uses: softprops/action-gh-release@v1
23+
uses: softprops/action-gh-release@v2
2424
if: startsWith(github.ref, 'refs/tags/')
2525
with:
2626
name: ${{ github.ref_name }}

.github/workflows/scripts/get-xetabase-branch.sh

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,26 @@ set -x
44
# Function to calculate the corresponding branch of Xetabase project
55
get_xetabase_branch() {
66
# Input parameter (branch name)
7-
input_branch="$1"
7+
# Input parameter (branch name)
8+
target_branch="$1"
9+
current_branch="$2"
810

911
# If the branch begins with 'TASK' and exists in the opencga-enterprise repository, I return it
10-
if [[ $input_branch == TASK* ]]; then
11-
if [ "$(git ls-remote "https://$ZETTA_REPO_ACCESS_TOKEN@github.com/zetta-genomics/opencga-enterprise.git" "$input_branch" )" ] ; then
12-
echo $input_branch;
12+
if [[ $current_branch == TASK* ]]; then
13+
if [ "$(git ls-remote "https://$ZETTA_REPO_ACCESS_TOKEN@github.com/zetta-genomics/opencga-enterprise.git" "$current_branch" )" ] ; then
14+
echo "$current_branch";
1315
return 0;
1416
fi
1517
fi
1618

1719
# Check if the branch name is "develop" in that case return the same branch name
18-
if [[ "$input_branch" == "develop" ]]; then
20+
if [[ "$target_branch" == "develop" ]]; then
1921
echo "develop"
2022
return 0
2123
fi
2224

2325
# Check if the branch name starts with "release-" and follows the patterns "release-a.x.x" or "release-a.b.x"
24-
if [[ "$input_branch" =~ ^release-([0-9]+)\.x\.x$ ]] || [[ "$input_branch" =~ ^release-([0-9]+)\.([0-9]+)\.x$ ]]; then
26+
if [[ "$target_branch" =~ ^release-([0-9]+)\.x\.x$ ]] || [[ "$target_branch" =~ ^release-([0-9]+)\.([0-9]+)\.x$ ]]; then
2527
# Extract the MAJOR part of the branch name
2628
MAJOR=${BASH_REMATCH[1]}
2729
# Calculate the XETABASE_MAJOR by subtracting 3 from MAJOR
@@ -32,7 +34,7 @@ get_xetabase_branch() {
3234
return 1
3335
fi
3436
# Construct and echo the new branch name
35-
echo "release-$XETABASE_MAJOR.${input_branch#release-$MAJOR.}"
37+
echo "release-$XETABASE_MAJOR.${target_branch#release-$MAJOR.}"
3638
return 0
3739
fi
3840

@@ -41,6 +43,11 @@ get_xetabase_branch() {
4143
return 1
4244
}
4345

46+
# Check if the script receives exactly one argument
47+
if [ "$#" -ne 2 ]; then
48+
echo "Usage: $0 <target-branch> <current-branch>"
49+
exit 1
50+
fi
4451

4552
# Call the function with the input branch name
46-
get_xetabase_branch "$1"
53+
get_xetabase_branch "$1" "$2"

0 commit comments

Comments
 (0)