mirror of
https://github.com/linuxserver/github-workflows.git
synced 2026-03-02 00:02:48 +08:00
create action for executable bit check for run/finish
This commit is contained in:
parent
b2bcd9c8e3
commit
7f3955f7c0
22
.github/workflows/init-svc-executable-permissions.yml
vendored
Normal file
22
.github/workflows/init-svc-executable-permissions.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
name: Permission check
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
permission_check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3.1.0
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
- name: Check Permissions
|
||||
run: |
|
||||
WRONG_PERM=$(find ./ -name run -not -perm -u=x,g=x,o=x && find ./ -name finish -not -perm -u=x,g=x,o=x)
|
||||
if [ -n "${WRONG_PERM}" ]; then
|
||||
for i in ${WRONG_PERM}; do
|
||||
echo "::error file=${i},line=1,title=Missing Executable Bit::This file needs to be set as executable!"
|
||||
done
|
||||
exit 1
|
||||
else
|
||||
echo "**** All perms look good ****"
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user