Skip to content

Commit 268807b

Browse files
committed
chore(ci): add token to upload and trigger workflow
1 parent cbdb6d5 commit 268807b

File tree

2 files changed

+5
-25
lines changed

2 files changed

+5
-25
lines changed

.github/workflows/beta-release.yml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,8 @@ jobs:
3333

3434
-
3535
name: Trigger workflow
36+
env:
37+
GH_TOKEN: ${{ secrets.TRIGGER_WORKFLOW_TOKEN }}
3638
run: |
3739
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
38-
-
39-
name: Trigger Circle CI API
40-
env:
41-
CIRCLE_API_TOKEN: ${{ secrets.CIRCLE_API_TOKEN }}
42-
DISTRIBUTION: ${{ matrix.distribution }}
43-
run: >
44-
curl --request POST
45-
--url https://circleci.com/api/v2/project/github/jolicode/redirection.io/pipeline
46-
--header "Circle-Token: $CIRCLE_API_TOKEN"
47-
--header "Content-Type: application/json"
48-
--data "
49-
{
50-
\"branch\":\"master\",
51-
\"parameters\": {
52-
\"run_main\":false,
53-
\"run_php_sdk\": false,
54-
\"run_lint\": false,
55-
\"release_env\": \"production\",
56-
\"release_channel\": \"beta\",
57-
\"release_main_version_dir\": \"$MAJOR_VERSION\",
58-
\"release_nginx_module_version\": \"$VERSION\",
59-
\"release_distribution\": \"$DISTRIBUTION\"
60-
}
61-
}
62-
"
40+

.github/workflows/stable-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@ jobs:
3333

3434
-
3535
name: Trigger workflow
36+
env:
37+
GH_TOKEN: ${{ secrets.TRIGGER_WORKFLOW_TOKEN }}
3638
run: |
3739
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

0 commit comments

Comments
 (0)