diff --git a/.github/workflows/k8s-upgrade-automation.yml b/.github/workflows/k8s-upgrade-automation.yml index a27d3559e0..e71425bc29 100644 --- a/.github/workflows/k8s-upgrade-automation.yml +++ b/.github/workflows/k8s-upgrade-automation.yml @@ -118,8 +118,14 @@ jobs: run: yarn install --check-files - name: Import the new k8s spec from the prerequisite step run: yarn run import - - name: Disable publishing if is testingMode is true - run: if [ ${{ github.event.inputs.testingMode }} == true ]; then npx projen disable-publishing + - name: Disable publishing if testingMode is true + run: "if [ ${{ github.event.inputs.testingMode }} == true ] ; then + + \ npx projen disable-publishing + + \ fi + + \ " - name: Let projen update the remaining files run: npx projen build - name: Update references of old kubernetes versions with projen task diff --git a/src/k8s-automation.ts b/src/k8s-automation.ts index 1b5338fdaf..9146dc8b59 100644 --- a/src/k8s-automation.ts +++ b/src/k8s-automation.ts @@ -242,8 +242,10 @@ export class K8sVersionUpgradeAutomation extends Component { run: 'yarn run import', }, { - name: 'Disable publishing if is testingMode is true', - run: 'if [ ${{ github.event.inputs.testingMode }} == true ]; then npx projen disable-publishing', + name: 'Disable publishing if testingMode is true', + run: 'if [ ${{ github.event.inputs.testingMode }} == true ] ;' + ` then + npx projen disable-publishing + fi`, }, { name: 'Let projen update the remaining files',