Skip to content

Commit

Permalink
rename bash file again
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 f048e12 commit bd2aa5d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
4 changes: 1 addition & 3 deletions .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.

11 changes: 5 additions & 6 deletions src/k8s-automation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,12 @@ export class K8sVersionUpgradeAutomation extends Component {
steps: [
{
name: 'Set testingMode env variable',
run: 'bash src/testingModeScript.sh ${{ github.event.inputs.testingMode }}',
run: 'bash src/testModeSet.sh ${{ github.event.inputs.testingMode }}',
},
{
name: 'PRINT testing mode var',
run: 'echo env.testingMode',
},

// {
// name: 'PRINT testing mode var',
// run: 'echo env.testingMode',
// },
{
id: 'get-k8s-latest-release',
name: 'Get latest K8s Release',
Expand Down
4 changes: 4 additions & 0 deletions src/testModeSet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

TESTING_MODE_INPUT="$1"
echo testingMode=${TESTING_MODE_INPUT:-"true"}
6 changes: 1 addition & 5 deletions src/testingModeScript.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
#!/bin/bash

TESTING_MODE_INPUT="$1"
# Use user input or fall back to "true"
echo testingMode=${TESTING_MODE_INPUT:-"true"}
# Use user input or fall back to "true"
# >> $GITHUB_OUTPUT
# use $NAME in your action, value will be always provided






# export githubEvent="$1"
# export testingMode="$2"

Expand Down

0 comments on commit bd2aa5d

Please sign in to comment.