Skip to content

Commit 9591c86

Browse files
author
aghaiand
committed
renamed input to be more explicit since the trigger job can also technically be run manually
1 parent 3841c2e commit 9591c86

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build_loop.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ run-name: Build Loop (${{ github.ref_name }})
33
on:
44
workflow_dispatch:
55
inputs:
6-
is_scheduled:
6+
dispatched_by_trigger:
77
description: 'Whether this was dispatched from the trigger scheduled workflow'
88
required: false
99
type: boolean
@@ -159,7 +159,7 @@ jobs:
159159
uses: ./.github/workflows/create_certs.yml
160160
secrets: inherit
161161
if: |
162-
(github.event_name == 'workflow_dispatch' && github.event.inputs.is_scheduled != 'true') ||
162+
(github.event_name == 'workflow_dispatch' && github.event.inputs.dispatched_by_trigger != 'true') ||
163163
(vars.SCHEDULED_BUILD != 'false' && needs.check_status.outputs.IS_SECOND_IN_MONTH == 'true') ||
164164
(vars.SCHEDULED_SYNC != 'false' && needs.check_status.outputs.NEW_COMMITS == 'true' )
165165
@@ -172,7 +172,7 @@ jobs:
172172
contents: write
173173
if:
174174
| # builds with manual start; if scheduled: once a month or when new commits are found
175-
(github.event_name == 'workflow_dispatch' && github.event.inputs.is_scheduled != 'true') ||
175+
(github.event_name == 'workflow_dispatch' && github.event.inputs.dispatched_by_trigger != 'true') ||
176176
(vars.SCHEDULED_BUILD != 'false' && needs.check_status.outputs.IS_SECOND_IN_MONTH == 'true') ||
177177
(vars.SCHEDULED_SYNC != 'false' && needs.check_status.outputs.NEW_COMMITS == 'true' )
178178
steps:

.github/workflows/trigger_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
-H "Authorization: Bearer ${GH_PAT}" \
2323
-H "Accept: application/vnd.github+json" \
2424
https://api.github.com/repos/${{ github.repository }}/actions/workflows/build_loop.yml/dispatches \
25-
-d '{"ref":"${{ github.ref_name }}", "inputs": {"is_scheduled": "true"}}'
25+
-d '{"ref":"${{ github.ref_name }}", "inputs": {"dispatched_by_trigger": "true"}}'

0 commit comments

Comments
 (0)