Преглед изворни кода

fix(ci): set datadir env var in serverlist-validate workflow

The serverlist-validate.sh scripts use ${datadir} to cd into the
correct directory, but the workflow never set this variable.
This caused tail to fail with "No such file or directory" as it
ran from the repo root instead of lgsm/data/.
Daniel Gibbs пре 1 месец
родитељ
комит
0f23c28b49
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      .github/workflows/serverlist-validate.yml

+ 3 - 0
.github/workflows/serverlist-validate.yml

@@ -6,6 +6,9 @@ on:
 permissions:
 permissions:
   contents: read
   contents: read
 
 
+env:
+  datadir: lgsm/data
+
 jobs:
 jobs:
   serverlist-validate:
   serverlist-validate:
     if: github.repository_owner == 'GameServerManagers'
     if: github.repository_owner == 'GameServerManagers'