Skip to content

Commit 5976f9c

Browse files
committed
move release branch creation to GHA
1 parent 8b82c64 commit 5976f9c

File tree

4 files changed

+50
-135
lines changed

4 files changed

+50
-135
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
on:
2+
workflow_dispatch:
3+
inputs:
4+
version:
5+
description: 'The release version in X.x.m format e.g. 12.3.2'
6+
required: true
7+
type: string
8+
remote:
9+
description: 'Update submodules to latest version from remote. Defaults to false, appropriate for a normal release'
10+
default: false
11+
type: boolean
12+
tag:
13+
description: "Commit to branch release from. Defaults to 'HEAD', appropriate for a normal release. May need to set specific TAG here for patch release"
14+
default: "HEAD"
15+
type: string
16+
create_epics_branches:
17+
description: 'Create release branches for EPICS and submodules'
18+
default: true
19+
type: boolean
20+
create_ibex_gui_branch:
21+
description: 'Create release branch for IBEX GUI'
22+
default: true
23+
type: boolean
24+
create_script_gen_branch:
25+
description: 'Create release branch for the Script Generator'
26+
default: true
27+
type: boolean
28+
create_uktena_branch:
29+
description: 'Create release branch for Uktena Python distribution'
30+
default: true
31+
type: boolean
32+
33+
jobs:
34+
create_release_branches:
35+
runs-on: ubuntu-latest
36+
env:
37+
VERSION: ${github.event.inputs.version}
38+
REMOTE: ${github.event.inputs.remote}
39+
TAG: ${github.event.inputs.tag}
40+
EPICS: ${github.event.inputs.create_epics_branches}
41+
IBEX_GUI: ${github.event.inputs.create_ibex_gui_branch}
42+
SCRIPT_GENERATOR: ${github.event.inputs.create_script_gen_branch}
43+
UKTENA: ${github.event.inputs.create_uktena_branch}
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: actions/setup-python@v5
47+
with:
48+
python-version: '3.11'
49+
- run: python -m pip install -r release_scripts/requirements.txt
50+
- run: python --version ${github.event.inputs.version}

release_scripts/Jenkinsfile_branches

Lines changed: 0 additions & 123 deletions
This file was deleted.

release_scripts/branches.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
EPICS_REPO_URL = "https://github.com/ISISComputingGroup/EPICS.git"
1313
IBEX_REPO_URL = "https://github.com/ISISComputingGroup/ibex_gui.git"
1414
UKTENA_URL = "https://github.com/ISISComputingGroup/uktena.git"
15-
JSON_BOURNE_URL = "https://github.com/ISISComputingGroup/JSON_bourne.git"
1615

1716
EPICS_DIR = "EPICS"
1817
IBEX_DIR = "IBEX"
1918
SCRIPT_GEN_DIR = "SCRIPT_GEN"
2019
UKTENA_DIR = "UKTENA"
21-
JSON_BOURNE_DIR = "JSON_bourne"
2220

2321
INSTETC_TEMPLATE_LOCAL_PATH = os.path.join(
2422
"INSTETC", "INSTETC-IOC-01App", "Db", "svn-revision.db.tmpl"
@@ -266,8 +264,3 @@ def push(self, submodules: bool = False) -> None:
266264
uktena = ReleaseBranch()
267265
uktena.create(UKTENA_URL, UKTENA_DIR, f"Release_{args.version}")
268266
uktena.push()
269-
270-
if os.getenv("JSON_BOURNE") == "true":
271-
json_bourne = ReleaseBranch()
272-
json_bourne.create(JSON_BOURNE_URL, JSON_BOURNE_DIR, f"Release_{args.version}")
273-
json_bourne.push()

release_scripts/requirements.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
# Used for Python on Linux Jenkins node.
2-
3-
###### Requirements without Version Specifiers ######
41
GitPython
5-
6-
###### Requirements with Version Specifiers ######

0 commit comments

Comments
 (0)