Skip to content

Commit 35306e9

Browse files
authored
Update directly executed scripts inside workflows (#1107)
* Update directly executed scripts on workflows Signed-off-by: thepetk <[email protected]> * Update directly executed scripts on bash scripts Signed-off-by: thepetk <[email protected]> --------- Signed-off-by: thepetk <[email protected]>
1 parent 079e7df commit 35306e9

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/workflows/ci.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ jobs:
2727

2828
- name: Generate Go sources, CRDs and schemas
2929
run: |
30-
./docker-run.sh ./build.sh
30+
bash ./docker-run.sh ./build.sh
3131
if [[ ! -z $(git status -s) ]]
3232
then
33-
echo 'Command `./docker-run.sh ./build.sh` did introduce changes, which should not be the case if it had been run as part of the PR. Please run it locally and check in the results as part of your PR.'
33+
echo 'Command `bash ./docker-run.sh ./build.sh` did introduce changes, which should not be the case if it had been run as part of the PR. Please run it locally and check in the results as part of your PR.'
3434
git --no-pager diff
3535
exit 1
3636
fi
3737
3838
- name: Validate samples against schemas
39-
run: ./docker-run.sh ./validate-samples.sh
39+
run: bash ./docker-run.sh ./validate-samples.sh
4040

4141
- name: Run GO tests
4242
run: go test -coverprofile cover.out -v ./...
@@ -45,7 +45,7 @@ jobs:
4545
uses: codecov/[email protected]
4646

4747
- name: Check typescript model generation
48-
run: ./build/typescript-model/generate.sh
48+
run: bash ./build/typescript-model/generate.sh
4949

5050
- name: Check GO mod state
5151
run: |
@@ -75,7 +75,7 @@ jobs:
7575
run: |
7676
export PATH=$PATH:$(go env GOPATH)/bin
7777
go install github.com/securego/gosec/v2/cmd/[email protected]
78-
./run_gosec.sh
78+
bash ./run_gosec.sh
7979
if [[ $? != 0 ]]
8080
then
8181
echo "gosec scanner failed to run "

.github/workflows/release-typescript-models.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Generate typescript model
4040
run: |
41-
./build/typescript-model/generate.sh
41+
bash ./build/typescript-model/generate.sh
4242
cp -r ./build/typescript-model/workdir/typescript-models ../
4343
working-directory: api
4444

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ onError() {
3030
}
3131
trap 'onError' ERR
3232

33-
"${BASE_DIR}"/build-generator.sh
33+
bash "${BASE_DIR}"/build-generator.sh
3434

3535
cd "${BASE_DIR}"
3636

build/typescript-model/generate.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ EOF
3030
echo "[INFO] Lauching gen to generate typescript files based on swagger json"
3131
export OPENAPI_SKIP_FETCH_SPEC=true
3232
export OPENAPI_GENERATOR_COMMIT="v6.3.0"
33-
$WORK_DIR/gen/openapi/typescript.sh $WORK_DIR/typescript-models $WORK_DIR/config.sh
33+
bash $WORK_DIR/gen/openapi/typescript.sh $WORK_DIR/typescript-models $WORK_DIR/config.sh
3434

3535
sed -i 's/\"name\": \".*\"/"name": "@devfile\/api"/g' $WORK_DIR/typescript-models/package.json
3636
sed -i 's/\"description\": \".*\"/"description": "Typescript types for devfile api"/g' $WORK_DIR/typescript-models/package.json

make-release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ setVersionAndBuild() {
8181
apply_sed "s#jsonschema:version=.*#jsonschema:version=${SCHEMA_VERSION}#g" pkg/apis/workspaces/$K8S_VERSION/doc.go #src/constants.ts
8282

8383
# Generate the schema
84-
./build.sh
84+
bash ./build.sh
8585
}
8686

8787
commitChanges() {

0 commit comments

Comments
 (0)