Skip to content

Commit

Permalink
chore(workflows): remove push trigger from legacy workflows
Browse files Browse the repository at this point in the history
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
  • Loading branch information
CoMfUcIoS committed Sep 26, 2024
1 parent 2b7fd6f commit 11ded2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test-legacy-compilers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ on:
- .puppet-lint.rc
- .fixtures.yml
branches: [main]
push:
workflow_dispatch:
inputs:
ssh-debugging:
Expand Down Expand Up @@ -143,8 +142,7 @@ jobs:
echo ::endgroup::
echo ::group::smoke_test
legacy_compiler=$(yq '.items[0].value.params.legacy_compilers[0]' peadm_config.json)
if [ "$compiler" != "$legacy_compiler" ]
then
if [ "$compiler" != "$legacy_compiler" ]; then
echo "Compiler conversion failed, expected $compiler, got $legacy_compiler"
exit 1
fi
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test-legacy-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ on:
- .puppet-lint.rc
- .fixtures.yml
branches: [main]
push:
workflow_dispatch:
inputs:
ssh-debugging:
Expand Down Expand Up @@ -141,7 +140,7 @@ jobs:
echo ::group::smoke_test
configured_legacy_compiler=$(yq '.items[0].value.params.legacy_compilers[0]' peadm_config.json)
configured_compiler=$(yq '.items[0].value.params.compiler_hosts[0]' peadm_config.json)
if [ "$configured_legacy_compiler" != "$legacy_compiler" AND "$configured_compiler" != "$compiler" ]
if [ "$configured_legacy_compiler" != "$legacy_compiler" ] && [ "$configured_compiler" != "$compiler" ]; then
echo "Compilers are not configured, expected $legacy_compiler and $compiler, got $configured_legacy_compiler and $configured_compiler"
exit 1
fi
Expand Down Expand Up @@ -186,7 +185,7 @@ jobs:
echo ::group::smoke_test
configured_legacy_compiler=$(yq '.items[0].value.params.legacy_compilers[0]' peadm_config.json)
configured_compiler=$(yq '.items[0].value.params.compiler_hosts[0]' peadm_config.json)
if [ "$configured_legacy_compiler" != "$legacy_compiler" AND "$configured_compiler" != "$compiler" ]
if [ "$configured_legacy_compiler" != "$legacy_compiler" ] && [ "$configured_compiler" != "$compiler" ]; then
echo "Compilers are not configured, expected $legacy_compiler and $compiler, got $configured_legacy_compiler and $configured_compiler"
exit 1
fi
Expand Down

0 comments on commit 11ded2f

Please sign in to comment.