From 04441590f02b7978ed488dac1b589d5358a4aa9e Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Thu, 18 May 2023 14:58:56 -0600 Subject: [PATCH] CI: Add support for validation on non-dortania repos --- .github/workflows/validate-external.yml | 23 +++++++++++++++++++++++ .github/workflows/validate.yml | 1 + 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/validate-external.yml diff --git a/.github/workflows/validate-external.yml b/.github/workflows/validate-external.yml new file mode 100644 index 000000000..440635fef --- /dev/null +++ b/.github/workflows/validate-external.yml @@ -0,0 +1,23 @@ +name: CI - Validation (External) + +on: + push: + workflow_dispatch: + release: + types: [published] + +jobs: + build: + name: Validate + runs-on: macos-latest + if: github.repository_owner != 'dortania' + steps: + - uses: actions/checkout@v3 + - name: Install Python + uses: actions/setup-python@v2 + with: + python-version: '3.10' + - name: Install Dependencies + run: python3 -m pip install -r requirements.txt + - name: Validate + run: python3 OpenCore-Patcher-GUI.command --validate diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 1a62e264e..685097e37 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -10,6 +10,7 @@ jobs: build: name: Validate runs-on: x86_64_monterey + if: github.repository_owner == 'dortania' steps: - uses: actions/checkout@v3 - name: Validate