Skip to content

Commit 11ded2f

Browse files
committed
chore(workflows): remove push trigger from legacy workflows
The push trigger has been removed from the test-legacy-compilers and test-legacy-upgrade workflows. This change ensures that these workflows are only triggered manually via workflow_dispatch. fix(workflow): correct conditional syntax in test-legacy-upgrade.yaml - Replace incorrect `AND` with `&&` for accurate conditional checks
1 parent 2b7fd6f commit 11ded2f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/test-legacy-compilers.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ on:
2323
- .puppet-lint.rc
2424
- .fixtures.yml
2525
branches: [main]
26-
push:
2726
workflow_dispatch:
2827
inputs:
2928
ssh-debugging:
@@ -143,8 +142,7 @@ jobs:
143142
echo ::endgroup::
144143
echo ::group::smoke_test
145144
legacy_compiler=$(yq '.items[0].value.params.legacy_compilers[0]' peadm_config.json)
146-
if [ "$compiler" != "$legacy_compiler" ]
147-
then
145+
if [ "$compiler" != "$legacy_compiler" ]; then
148146
echo "Compiler conversion failed, expected $compiler, got $legacy_compiler"
149147
exit 1
150148
fi

.github/workflows/test-legacy-upgrade.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ on:
2323
- .puppet-lint.rc
2424
- .fixtures.yml
2525
branches: [main]
26-
push:
2726
workflow_dispatch:
2827
inputs:
2928
ssh-debugging:
@@ -141,7 +140,7 @@ jobs:
141140
echo ::group::smoke_test
142141
configured_legacy_compiler=$(yq '.items[0].value.params.legacy_compilers[0]' peadm_config.json)
143142
configured_compiler=$(yq '.items[0].value.params.compiler_hosts[0]' peadm_config.json)
144-
if [ "$configured_legacy_compiler" != "$legacy_compiler" AND "$configured_compiler" != "$compiler" ]
143+
if [ "$configured_legacy_compiler" != "$legacy_compiler" ] && [ "$configured_compiler" != "$compiler" ]; then
145144
echo "Compilers are not configured, expected $legacy_compiler and $compiler, got $configured_legacy_compiler and $configured_compiler"
146145
exit 1
147146
fi
@@ -186,7 +185,7 @@ jobs:
186185
echo ::group::smoke_test
187186
configured_legacy_compiler=$(yq '.items[0].value.params.legacy_compilers[0]' peadm_config.json)
188187
configured_compiler=$(yq '.items[0].value.params.compiler_hosts[0]' peadm_config.json)
189-
if [ "$configured_legacy_compiler" != "$legacy_compiler" AND "$configured_compiler" != "$compiler" ]
188+
if [ "$configured_legacy_compiler" != "$legacy_compiler" ] && [ "$configured_compiler" != "$compiler" ]; then
190189
echo "Compilers are not configured, expected $legacy_compiler and $compiler, got $configured_legacy_compiler and $configured_compiler"
191190
exit 1
192191
fi

0 commit comments

Comments
 (0)