diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 8ebb7b59ea..a353d400a2 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -4,26 +4,26 @@ on: - cron: '0 0 * * 5' push: branches: - - 'master' + - master workflow_dispatch: jobs: push-beta: if: github.repository == 'PathOfBuildingCommunity/PathOfBuilding' runs-on: ubuntu-22.04 steps: - - name: Set line endings + - name: Set line endings run: git config --global core.autocrlf true - - name: Checkout + - name: Checkout uses: actions/checkout@v3 with: - ref: 'dev' - - name: Configure bot user + ref: dev + - name: Configure bot user run: | - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --global user.name "github-actions[bot]" - - name: Update manifest.xml + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + - name: Update manifest.xml run: python3 update_manifest.py --quiet --in-place - - name: Push to beta branch + - name: Push to beta branch run: | - git commit -am "Weekly beta release" --allow-empty --author="github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" - git push origin HEAD:beta --force + git commit -am "Weekly beta release" --allow-empty --author="github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" + git push origin HEAD:beta --force diff --git a/.github/workflows/buildtest.yml b/.github/workflows/buildtest.yml index a9c730a902..ffa3f6a37b 100644 --- a/.github/workflows/buildtest.yml +++ b/.github/workflows/buildtest.yml @@ -1,12 +1,11 @@ name: Run Tests on: pull_request: - branches: [ dev ] - + branches: + - dev concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: '${{ github.workflow }}-${{ github.ref }}' cancel-in-progress: true - jobs: run_build_diff: if: github.repository == 'PathOfBuildingCommunity/PathOfBuilding' @@ -25,18 +24,17 @@ jobs: uses: actions/cache@v4 with: path: /tmp/cache/ - key: ${{ steps.get-dev-ref.outputs.devref }} + key: '${{ steps.get-dev-ref.outputs.devref }}' - name: Make sure cache is readable by docker run: chmod -R 777 /tmp/cache - name: Run build diff run: docker compose run -v '/tmp/cache/:/cache' -e 'CACHEDIR=/cache' busted-diff | tee /tmp/dockerlog - name: Generate artefact - run: | - sed -n '/Savefile Diff for/, $p' /tmp/dockerlog | tee /tmp/artefact - [ -s /tmp/artefact ] || rm /tmp/artefact + run: | + sed -n '/Savefile Diff for/, $p' /tmp/dockerlog | tee /tmp/artefact + [ -s /tmp/artefact ] || rm /tmp/artefact - name: Upload artefact uses: actions/upload-artifact@v4 with: - name: build-diff-output - path: /tmp/artefact - \ No newline at end of file + name: build-diff-output + path: /tmp/artefact diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 20eed9fded..43d280673c 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -2,10 +2,11 @@ name: Run Unit Tests on: workflow_dispatch: push: - branches: [ dev ] + branches: + - dev pull_request: - branches: [ dev ] - + branches: + - dev jobs: run_unit_tests: runs-on: ubuntu-latest @@ -13,4 +14,4 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Run busted tests - run: docker compose run --no-TTY busted-tests \ No newline at end of file + run: docker compose run --no-TTY busted-tests diff --git a/.github/workflows/updatebuildlist.yml b/.github/workflows/updatebuildlist.yml index cf74aa2334..f7c1b2ec23 100644 --- a/.github/workflows/updatebuildlist.yml +++ b/.github/workflows/updatebuildlist.yml @@ -1,9 +1,8 @@ name: Update build list for tests -on: +on: schedule: - cron: '20 4 * * *' workflow_dispatch: - jobs: push-beta: if: github.repository == 'PathOfBuildingCommunity/PathOfBuilding' @@ -14,8 +13,7 @@ jobs: with: name: test-build-list - name: Update list - run: | - cat builds.txt <({ curl "https://pobarchives.com/api/builds?q=latest" & curl "https://pobarchives.com/api/builds?q=trending"; } | jq -r '.builds[].build_info.build_link') | sort -u | tail -n 500 | sponge builds.txt + run: cat builds.txt <({ curl "https://pobarchives.com/api/builds?q=latest" & curl "https://pobarchives.com/api/builds?q=trending"; } | jq -r '.builds[].build_info.build_link') | sort -u | tail -n 500 | sponge builds.txt - name: Upload Artifact uses: actions/upload-artifact@v4 with: @@ -23,5 +21,3 @@ jobs: path: builds.txt overwrite: true if-no-files-found: error - -