diff --git a/.github/workflows/bump-latest-cdk8s-plus-library.yml b/.github/workflows/bump-latest-cdk8s-plus-library.yml index 8e9e793dc8..6f6faf1d28 100644 --- a/.github/workflows/bump-latest-cdk8s-plus-library.yml +++ b/.github/workflows/bump-latest-cdk8s-plus-library.yml @@ -67,7 +67,7 @@ jobs: id: set-auto-approve-label env: GITHUB_TOKEN: ${{ secrets.PROJEN_GITHUB_TOKEN }} - run: if (${{ github.event.inputs.testingMode }} == false);then echo labels="test-auto-approve-label" >> $GITHUB_OUTPUT;fi + run: if (${{ github.event_name }} == push);then echo labels="test-auto-approve-label" >> $GITHUB_OUTPUT;fi continue-on-error: false - name: Create Pull Request id: create-pr diff --git a/src/k8s-automation.ts b/src/k8s-automation.ts index 4eb5d00f28..ccebcc79f9 100644 --- a/src/k8s-automation.ts +++ b/src/k8s-automation.ts @@ -126,7 +126,7 @@ export class K8sVersionUpgradeAutomation extends Component { { name: 'Set auto-approve label for PR if in testing mode', id: 'set-auto-approve-label', - run: 'if (${{ github.event.inputs.testingMode }} == false);then echo labels="test-auto-approve-label" >> $GITHUB_OUTPUT;fi', + run: 'if (${{ github.event_name }} == push);then echo labels="test-auto-approve-label" >> $GITHUB_OUTPUT;fi', // if: 'github.event.inputs.testingMode == false', // run: 'echo labels="auto-approve" >> $GITHUB_OUTPUT', env: { GITHUB_TOKEN: '${{ secrets.PROJEN_GITHUB_TOKEN }}' },