Update release_build.yml

This commit is contained in:
Ben C 2023-07-01 11:44:49 -04:00 committed by GitHub
parent b46906aab8
commit 2c9d237f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: