Skip to content

Commit decd73d

Browse files
Merge pull request #50 from gleanwork/rwjblue/push-tnwkpuvnnyso
fix(ci): Fix syntax issues with trigger-developer-site-redeploy.yml
2 parents 95cd361 + 6c446ca commit decd73d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/trigger-developer-site-redeploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@ jobs:
3838
with:
3939
github-token: ${{ secrets.DEVELOPER_SITE_REDEPLOY_TOKEN }}
4040
script: |
41+
const reason = '${{ github.event.inputs.reason }}' || "Triggered by OpenAPI specs deployment";
4142
const result = await github.rest.actions.createWorkflowDispatch({
4243
owner: 'gleanwork',
4344
repo: 'glean-developer-site',
4445
workflow_id: 'trigger-redeploy.yml',
4546
ref: 'main',
4647
inputs: {
47-
reason: '${{ github.event.inputs.reason || "Triggered by OpenAPI specs deployment" }}'
48+
reason,
4849
}
4950
});
5051
console.log('Developer site redeploy triggered:', result.status);

0 commit comments

Comments
 (0)