Skip to content

Commit

Permalink
try conditional if AGAIN
Browse files Browse the repository at this point in the history
Signed-off-by: Sumu <[email protected]>
  • Loading branch information
sumupitchayan committed Oct 18, 2023
1 parent 3b30f9c commit 7a7ba74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/bump-latest-cdk8s-plus-library.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/k8s-automation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ 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_name }} == push);then echo labels="auto-approve" >> $GITHUB_OUTPUT;fi',
if: 'github.event_name == push',
run: 'echo labels="bug" >> $GITHUB_OUTPUT;',
// run: 'if (${{ github.event_name }} == push);then echo labels="bug" >> $GITHUB_OUTPUT;fi',
// if: 'github.event.inputs.testingMode == false',
// run: 'echo labels="auto-approve" >> $GITHUB_OUTPUT',
env: { GITHUB_TOKEN: '${{ secrets.PROJEN_GITHUB_TOKEN }}' },
Expand Down

0 comments on commit 7a7ba74

Please sign in to comment.