File tree Expand file tree Collapse file tree 2 files changed +7
-24
lines changed Expand file tree Collapse file tree 2 files changed +7
-24
lines changed Original file line number Diff line number Diff line change 31
31
name : Set major version
32
32
run : MAJOR_VERSION=`sed -E 's/[^0-9]+?([0-9]+)\.([0-9]+)\.([0-9]+).+?/\1/' <<< $VERSION` && echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV
33
33
34
+ -
35
+ name : Trigger workflow
36
+ run : |
37
+ gh workflow run release.yml -R jolicode/redirection.io -f environment=production -f package=module-nginx -f channel=beta -f version=$VERSION -f version_directory=$MAJOR_VERSION -f build_iteration=1 -f module_image=$DISTRIBUTION
34
38
-
35
39
name : Trigger Circle CI API
36
40
env :
Original file line number Diff line number Diff line change 32
32
run : MAJOR_VERSION=`sed -E 's/[^0-9]+?([0-9]+)\.([0-9]+)\.([0-9]+).+?/\1/' <<< $VERSION` && echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV
33
33
34
34
-
35
- name : Trigger Circle CI API
36
- env :
37
- CIRCLE_API_TOKEN : ${{ secrets.CIRCLE_API_TOKEN }}
38
- DISTRIBUTION : ${{ matrix.distribution }}
39
- run : >
40
- curl --request POST
41
- --url https://circleci.com/api/v2/project/github/jolicode/redirection.io/pipeline
42
- --header "Circle-Token: $CIRCLE_API_TOKEN"
43
- --header "Content-Type: application/json"
44
- --data "
45
- {
46
- \"branch\":\"master\",
47
- \"parameters\": {
48
- \"run_main\":false,
49
- \"run_php_sdk\": false,
50
- \"run_lint\": false,
51
- \"release_env\": \"production\",
52
- \"release_channel\": \"stable\",
53
- \"release_main_version_dir\": \"$MAJOR_VERSION\",
54
- \"release_nginx_module_version\": \"$VERSION\",
55
- \"release_distribution\": \"$DISTRIBUTION\"
56
- }
57
- }
58
- "
35
+ name : Trigger workflow
36
+ run : |
37
+ gh workflow run release.yml -R jolicode/redirection.io -f environment=production -f package=module-nginx -f channel=stable -f version=$VERSION -f version_directory=$MAJOR_VERSION -f build_iteration=1 -f module_image=$DISTRIBUTION
You can’t perform that action at this time.
0 commit comments