diff --git a/.gitea/workflows/pack-zgm-pbo-files.yaml b/.gitea/workflows/pack-zgm-pbo-files.yaml index fd9ef48..1bb8370 100644 --- a/.gitea/workflows/pack-zgm-pbo-files.yaml +++ b/.gitea/workflows/pack-zgm-pbo-files.yaml @@ -15,15 +15,10 @@ jobs: fetch-depth: 0 ref: 'main' token: ${{ secrets.RELEASE_TOKEN }} - path: missions - name: Get mission list run: | - Get-ChildItem missions/* - - - name: Current Directory - run: | - Get-Location + Get-ChildItem MissionsForZGM/missions/* CreatePboFiles: runs-on: windows @@ -51,13 +46,21 @@ jobs: token: ${{ secrets.RELEASE_TOKEN }} path: zgm-files + - name: Get mission list + run: | + Get-ChildItem + + - name: Get mission list + run: | + Get-ChildItem zgm-files + - name: Prepare tools run: mkdir packed-files - name: Pack PBOs run: | $date = Get-Date -Format "yyyy-MM-dd" - foreach ($file in Get-ChildItem zgm-files) { + foreach ($file in Get-ChildItem zgm-files\missions) { $map = (Get-Item zgm-files\missions\$file).Basename.split('\.')[-1] Copy-Item zgm-files\missions\$file\mission.sqm template\ (Get-Content .\template\mission_settings.hpp).Replace("MISSION AUTHOR","17th Ranger Battalion") | Set-Content .\template\mission_settings.hpp