diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index e657fbd5..5f204bf9 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -22,7 +22,20 @@ on: - ".gitignore" jobs: + CheckVersion: + if: ${{ contains(github.event.pull_request.labels.*.name, 'update-pr') }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: "actions/checkout@v3" + - name: Read Manifest + id: read-manifest + run: echo "manifest=$(< ./NewHorizons/manifest.json sed ':a;N;$!ba;s/\n/ /g')" >> $GITHUB_OUTPUT + - name: Error + if: ${{ steps.read-manifest.outputs.version != github.event.pull_request.title }} + run: echo "::error file=manifest.json,title=Version Error::Hey DUMB-DUMB UPDATE THE MANIFEST VERSION" Build: + needs: CheckVersion if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'update-pr') }} uses: ./.github/workflows/build.yaml with: