Skip to content

build(ci): Add verification that no script under functions/ directory… #20

build(ci): Add verification that no script under functions/ directory…

build(ci): Add verification that no script under functions/ directory… #20

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- main
- feature/*
paths-ignore:
- "**/*.md"
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Check Executability of Shell Scripts
run: |
find functions/ -type f -name "*.sh" ! -executable -exec sh -c 'echo "Error: {} is not executable"; exit 1' \;
shellcheck-validation:
needs: shellcheck
uses: kpatryk/workflows/.github/workflows/shellcheck.yml@v0.2.0
with:
os: ubuntu-latest
scandir: functions/
# find $FUNCTIONS_DIR -type f -name "*.sh" -exec sh -c ' \
# if [ ! -x "{}" ]; then \
# echo "Error: {} is not executable"; \
# exit 1; \
# fi' \;