Skip to content

Commit

Permalink
FIX: yaml formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak committed Mar 26, 2024
1 parent 469115d commit ed84520
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 32 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
20 changes: 9 additions & 11 deletions .github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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

name: build-diff-output
path: /tmp/artefact
9 changes: 5 additions & 4 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ 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
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run busted tests
run: docker compose run --no-TTY busted-tests
run: docker compose run --no-TTY busted-tests
8 changes: 2 additions & 6 deletions .github/workflows/updatebuildlist.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -14,14 +13,11 @@ 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:
name: test-build-list
path: builds.txt
overwrite: true
if-no-files-found: error


0 comments on commit ed84520

Please sign in to comment.