Skip to content

Commit c33f5d9

Browse files
committed
build: update ga workflows
1 parent 026d79a commit c33f5d9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: .github/actions/trigger-stage-deploy.js renamed to .github/actions/trigger-env-deploy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const octokit = new Octokit();
88
`POST /repos/cfu288/ansible_inventories/actions/workflows/${process.env.WORKFLOW_ID}/dispatches`,
99
{
1010
ref: 'main',
11-
}
11+
},
1212
);
1313
console.log('Stage deploy completed');
1414
} catch (error) {

Diff for: .github/workflows/production.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
with:
7373
node-version: 18
7474
- run: npm install @octokit/action
75-
- run: node .github/actions/trigger-stage-deploy.js
75+
- run: node .github/actions/trigger-env-deploy.js
7676
env:
7777
GITHUB_TOKEN: ${{ secrets.PAT_DEPLOY_GITHUB_TOKEN }}
7878
WORKFLOW_ID: ${{ vars.PROD_WORKFLOW_ID }}

Diff for: .github/workflows/staging.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
with:
4747
node-version: 18
4848
- run: npm install @octokit/action
49-
- run: node .github/actions/trigger-stage-deploy.js
49+
- run: node .github/actions/trigger-env-deploy.js
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.PAT_DEPLOY_GITHUB_TOKEN }}
5252
WORKFLOW_ID: ${{ vars.STAGE_WORKFLOW_ID }}

0 commit comments

Comments
 (0)