Skip to content

Commit d3153c3

Browse files
author
LE SAULNIER Kevin
committed
fix: last one !
Signed-off-by: LE SAULNIER Kevin <[email protected]>
1 parent 3a93f4f commit d3153c3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/dispatch-release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,14 @@ jobs:
7171
version=${{github.event.inputs.release-version}}
7272
branch_name=${{github.event.inputs.branch-name}}
7373
74-
gh workflow run release.yml \
75-
--ref main \
76-
-f releaseVersion="$version" \
77-
-f gitReference="$branch_name"
74+
owner=$(echo "$url" | cut -d/ -f4)
75+
repo=$(echo "$url" | cut -d/ -f5 | sed 's/\.git$//')
7876
79-
cd -
77+
gh api repos/$owner/$repo/actions/workflows/release.yml/dispatches \
78+
-f ref=main \
79+
-f inputs[releaseVersion]="$version" \
80+
-f inputs[gitReference]="$branch_name"
81+
8082
done <<< "${{ steps.load_repos.outputs.list }}"
8183
env:
8284
GH_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)