diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml index 75f12a9..86e1a34 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/beta-release.yml @@ -33,30 +33,8 @@ jobs: - name: Trigger workflow + env: + GH_TOKEN: ${{ secrets.TRIGGER_WORKFLOW_TOKEN }} run: | 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 - - - name: Trigger Circle CI API - env: - CIRCLE_API_TOKEN: ${{ secrets.CIRCLE_API_TOKEN }} - DISTRIBUTION: ${{ matrix.distribution }} - run: > - curl --request POST - --url https://circleci.com/api/v2/project/github/jolicode/redirection.io/pipeline - --header "Circle-Token: $CIRCLE_API_TOKEN" - --header "Content-Type: application/json" - --data " - { - \"branch\":\"master\", - \"parameters\": { - \"run_main\":false, - \"run_php_sdk\": false, - \"run_lint\": false, - \"release_env\": \"production\", - \"release_channel\": \"beta\", - \"release_main_version_dir\": \"$MAJOR_VERSION\", - \"release_nginx_module_version\": \"$VERSION\", - \"release_distribution\": \"$DISTRIBUTION\" - } - } - " + diff --git a/.github/workflows/stable-release.yml b/.github/workflows/stable-release.yml index 7b2a810..a351a12 100644 --- a/.github/workflows/stable-release.yml +++ b/.github/workflows/stable-release.yml @@ -33,5 +33,7 @@ jobs: - name: Trigger workflow + env: + GH_TOKEN: ${{ secrets.TRIGGER_WORKFLOW_TOKEN }} run: | 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