diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2024-04-18 09:29:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-18 09:29:31 -0400 |
| commit | 40a20bbf766d6876fe925336695760d82e1822e3 (patch) | |
| tree | a95c0d03471a33fffec4c435813c757e7ccb3c4f | |
| parent | 7d67443aca4f67932d6b248f038a44f83683ebf3 (diff) | |
ci: Ensure lock directory exists (#11383)
* ci: Ensure lock directory exists
* Use better construct
| -rw-r--r-- | .github/workflows/ci-openapi.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/ci-openapi.yml b/.github/workflows/ci-openapi.yml index 0abbb09c0..3c3504e34 100644 --- a/.github/workflows/ci-openapi.yml +++ b/.github/workflows/ci-openapi.yml @@ -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 |
