Skip to content

Commit a78abc9

Browse files
authored
ci: Fix conditional delay for yum/apt validation jobs. (#1872)
1 parent 70b10c2 commit a78abc9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/post_deploy_agent.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
description: 'Agent Version to validate. Needs to match the version from the Release Workflow (all_solutions.yml). Format: X.X.X'
99
required: true
1010
type: string
11-
external_call:
12-
type: boolean
13-
default: true
14-
required: false
1511
workflow_call:
1612
inputs:
1713
agent_version:
@@ -38,7 +34,7 @@ jobs:
3834
disable-sudo: false
3935
egress-policy: audit
4036
- name: Wait for APT to update
41-
if: ${{ inputs.external_call }}
37+
if: ${{ github.event_name == 'workflow_call' }} # only wait if this workflow was called by another workflow
4238
run: |
4339
echo "Sleeping 2 minutes to wait for apt to update itself"
4440
sleep 120
@@ -77,7 +73,7 @@ jobs:
7773
fetch-depth: 0
7874

7975
- name: Wait for YUM to update
80-
if: ${{ inputs.external_call }}
76+
if: ${{ github.event_name == 'workflow_call' }} # only wait if this workflow was called by another workflow
8177
run: |
8278
echo "Sleeping 2 minutes to wait for yum to update itself"
8379
sleep 120

0 commit comments

Comments
 (0)