mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 09:53:02 -04:00
switch to callable
This commit is contained in:
@@ -1,27 +1,9 @@
|
|||||||
name: Permission check
|
name: Permission check
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- '**/run'
|
- '**/run'
|
||||||
- '**/finish'
|
- '**/finish'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
permission_check:
|
permission_check:
|
||||||
runs-on: ubuntu-latest
|
uses: linuxserver/github-workflows/.github/workflows/init-svc-executable-permissions.yml@v1
|
||||||
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user