diff options
author | dd <dd@wx.tnyzeq.icu> | 2024-06-26 21:00:11 +0200 |
---|---|---|
committer | dd <dd@wx.tnyzeq.icu> | 2024-06-26 21:00:11 +0200 |
commit | 8948de9a6ceddbd242c2fcca002438f73a22dc34 (patch) | |
tree | baf9d1cc8c85b16a113e14adca225155b1d7728e /.github/workflows/check-scripts-executable.yml | |
parent | b1c6ac8511364abfdcb5d4f7f274817d654b7b71 (diff) | |
parent | b82d8b6b9e5f836ea8149018af5acdf833de34e4 (diff) | |
download | vyos-build-8948de9a6ceddbd242c2fcca002438f73a22dc34.tar.gz vyos-build-8948de9a6ceddbd242c2fcca002438f73a22dc34.zip |
Merge branch 'vyos:current' into current
Diffstat (limited to '.github/workflows/check-scripts-executable.yml')
-rw-r--r-- | .github/workflows/check-scripts-executable.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/check-scripts-executable.yml b/.github/workflows/check-scripts-executable.yml new file mode 100644 index 00000000..123e9895 --- /dev/null +++ b/.github/workflows/check-scripts-executable.yml @@ -0,0 +1,32 @@ +name: "Check for Jenkins build scripts has executable bit" + +on: + pull_request: + branches: + - current + - circinus + - sagitta + - equuleus + +permissions: + contents: read + +jobs: + check-scripts-executable: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + repository: ${{ github.repository }} + - name: Checking scripts are executable + run: | + files=$(find packages/ -type f -name '*.py' -or -name '*.sh' -not -executable -print) + if [[ -n $files ]]; then + echo "Found files without executable bit:" + for file in $files; do + echo $file; + done; + exit 1; + fi + shell: bash |