diff --git a/.github/workflows/k8s-upgrade-automation.yml b/.github/workflows/k8s-upgrade-automation.yml index 34197bddc0..9a8c1d21fb 100644 --- a/.github/workflows/k8s-upgrade-automation.yml +++ b/.github/workflows/k8s-upgrade-automation.yml @@ -35,7 +35,7 @@ jobs: run: echo latestVersion="$(cut -d "." -f 2 <<< "${{ steps.get-k8s-latest-release.outputs.release }}")" >> $GITHUB_OUTPUT - name: Get previous K8s minor version id: k8s-previous-version - run: echo previousVersion=$(( ${{ steps.k8s-latest-version.outputs.latestVersion }}} - 1 )) >> $GITHUB_OUTPUT + run: echo previousVersion=$(( ${{ steps.k8s-latest-version.outputs.latestVersion }} - 1 )) >> $GITHUB_OUTPUT - name: Check to see if cdk8s-plus released latest k8s version on npm by getting HTTP status code from npm url id: get-npm-status-code run: |- diff --git a/src/k8s-automation.ts b/src/k8s-automation.ts index add3071e22..4bdfdc052f 100644 --- a/src/k8s-automation.ts +++ b/src/k8s-automation.ts @@ -74,7 +74,7 @@ export class K8sVersionUpgradeAutomation extends Component { { id: 'k8s-previous-version', name: 'Get previous K8s minor version', - run: 'echo previousVersion=$(( ${{ steps.k8s-latest-version.outputs.latestVersion }}} - 1 )) >> $GITHUB_OUTPUT', + run: 'echo previousVersion=$(( ${{ steps.k8s-latest-version.outputs.latestVersion }} - 1 )) >> $GITHUB_OUTPUT', }, { id: 'get-npm-status-code',