File tree Expand file tree Collapse file tree 2 files changed +7
-49
lines changed Expand file tree Collapse file tree 2 files changed +7
-49
lines changed Original file line number Diff line number Diff line change 55 types : [prereleased]
66
77jobs :
8- trigger-circleci :
8+ trigger-release :
99 runs-on : ubuntu-latest
1010 strategy :
1111 matrix :
3232 run : MAJOR_VERSION=`sed -E 's/[^0-9]+?([0-9]+)\.([0-9]+)\.([0-9]+).+?/\1/' <<< $VERSION` && echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV
3333
3434 -
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\": \"beta\",
53- \"release_main_version_dir\": \"$MAJOR_VERSION\",
54- \"release_apache_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-apache2 -f channel=beta -f version=$VERSION -f version_directory=$MAJOR_VERSION -f build_iteration=1 -f module_image=$DISTRIBUTION
Original file line number Diff line number Diff line change 3232 run : MAJOR_VERSION=`sed -E 's/[^0-9]+?([0-9]+)\.([0-9]+)\.([0-9]+).+?/\1/' <<< $VERSION` && echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV
3333
3434 -
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_apache_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-apache2 -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