Skip to content

Commit

Permalink
try out separate script file
Browse files Browse the repository at this point in the history
Signed-off-by: Sumu <[email protected]>
  • Loading branch information
sumupitchayan committed Oct 19, 2023
1 parent c90702b commit fcef434
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 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.

2 changes: 1 addition & 1 deletion src/k8s-automation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class K8sVersionUpgradeAutomation extends Component {
// if: '!(${{ github.event_name }} == "push")',
// run: 'echo labels="bug" >> $GITHUB_OUTPUT;',
//${{ github.event.inputs.testingMode }}
run: 'if (("${{ github.event.inputs.testingMode }}"=""));then echo labels="auto-approve" >> $GITHUB_OUTPUT;fi',
run: 'bash testingModeScript.sh',
// run: 'if [${{ github.event_name }} = "push"];then echo labels="auto-approve" >> $GITHUB_OUTPUT;fi',
// if: 'github.event.inputs.testingMode == false',
// run: 'echo labels="auto-approve" >> $GITHUB_OUTPUT',
Expand Down
15 changes: 15 additions & 0 deletions src/testingModeScript.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
export testingMode="$(${{github.event.inputs.testingMode}})"

if ["$testingMode" = "false"]; then
echo labels="auto-approve" >> $GITHUB_OUTPUT
fi

# if [-z "$testingMode"]; then
# echo labels="auto-approve" >> $GITHUB_OUTPUT
# fi
# export isPush="$(get_version cdk8s-plus-$((${LATEST_K8S_VERSION}-2)))"
# export CDK8S_PLUSXX_MINUS_1_VERSION="$(get_version cdk8s-plus-$((${LATEST_K8S_VERSION}-1)))"
# export CDK8S_PLUSXX_VERSION="$(get_version cdk8s-plus-${LATEST_K8S_VERSION})"
# export CDK8S_CLI_VERSION="$(get_version cdk8s-cli)"
# hugo --minify $@

0 comments on commit fcef434

Please sign in to comment.