File tree Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
inputs :
6
6
release-version :
7
- description : Release version (X.X)
7
+ description : Release version (vX.X)
8
+ required : true
9
+ type : string
10
+ branch_name :
11
+ description : Branch to release (prepare-release-X.X)
8
12
required : true
9
13
type : string
10
14
@@ -69,24 +73,12 @@ jobs:
69
73
cd $folder
70
74
71
75
version=${{github.event.inputs.release-version}}
72
- branch_name="prepare-release-$version"
73
- # Check if *branch_name* already exists
74
- if ! git ls-remote --exit-code origin "refs/heads/$branch_name"; then
75
- echo "❌ Warning for $folder: Branch $branch_name does not exist"
76
- exit 1
77
- fi
78
- git checkout "$branch_name"
79
-
80
- tag_name="v$version"
81
- # Créer le tag
82
- git tag "$tag_name"
83
-
84
- # Pousser le tag
85
- git push origin "$tag_name"
76
+ branch_name=${{github.event.inputs.branch_name}}
86
77
87
- gh api repos/gridsuite/$folder/actions/workflows/ release.yml/dispatches \
78
+ gh workflow run release.yml \
88
79
-f ref=main \
89
- -f inputs.releaseVersion="v${{ github.event.inputs.release-version }}"
80
+ -f releaseVersion="$version"
81
+ -f gitReference="$branch_name"
90
82
91
83
cd -
92
84
done <<< "${{ steps.load_repos.outputs.list }}"
You can’t perform that action at this time.
0 commit comments