mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
ci: Ensure lock directory exists (#11383)
* ci: Ensure lock directory exists * Use better construct
This commit is contained in:
parent
7d67443aca
commit
40a20bbf76
6
.github/workflows/ci-openapi.yml
vendored
6
.github/workflows/ci-openapi.yml
vendored
@ -174,6 +174,10 @@ jobs:
|
||||
debug: false
|
||||
script_stop: false
|
||||
script: |
|
||||
if ! test -d /run/workflows; then
|
||||
sudo mkdir -p /run/workflows
|
||||
sudo chown ${{ secrets.REPO_USER }} /run/workflows
|
||||
fi
|
||||
(
|
||||
flock -x -w 300 200 || exit 1
|
||||
TGT_DIR="/srv/repository/main/openapi"
|
||||
@ -196,4 +200,4 @@ jobs:
|
||||
sudo rm ${TGT_DIR}/jellyfin-openapi-unstable_previous.json
|
||||
sudo ln -s unstable/${LAST_SPEC} ${TGT_DIR}/jellyfin-openapi-unstable_previous.json
|
||||
fi
|
||||
) 200>/run/openapi-unstable.lock
|
||||
) 200>/run/workflows/openapi-unstable.lock
|
||||
|
Loading…
x
Reference in New Issue
Block a user