From 4568647d6fc065be66d095572f3e1f9b1a792808 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Sat, 7 Oct 2023 09:35:39 -0700 Subject: [PATCH 1/2] Pull python versions from octodns/octodns/.ci-config.json --- .github/workflows/main.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e625ab5..840890c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,12 +2,25 @@ name: octoDNS EdgeCenterProvider on: [pull_request] jobs: + config: + runs-on: ubuntu-latest + outputs: + json: ${{ steps.load.outputs.json }} + steps: + - id: load + run: | + { + echo 'json<> $GITHUB_OUTPUT ci: + needs: config runs-on: ubuntu-latest strategy: fail-fast: false matrix: - python-version: ${{fromJson(vars.PYTHON_VERSIONS_ACTIVE)}} + python-version: ${{ fromJson(needs.config.outputs.json).python_versions_active }} steps: - uses: actions/checkout@v4 - name: Setup python @@ -19,13 +32,14 @@ jobs: run: | ./script/cibuild setup-py: + needs: config runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Setup python uses: actions/setup-python@v4 with: - python-version: ${{ vars.PYTHON_VERSION_CURRENT }} + python-version: ${{ fromJson(needs.config.outputs.json).python_version_current }} architecture: x64 - name: CI setup.py run: | From 90cc84aa9b80a74bdf590a6f0d018f18bd27e069 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Sat, 7 Oct 2023 09:41:17 -0700 Subject: [PATCH 2/2] switch ci-config.json to main --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 840890c..d4fc757 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: run: | { echo 'json<> $GITHUB_OUTPUT ci: