From ab0ef33356ba8234f8d94f159e2a8c44a799ba10 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 d8c0daa..2385201 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,12 +2,25 @@ name: octoDNS SelectelProvider 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 cc4b5d95346dacc248306e58d0c54f9cbba34389 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 2385201..32fa1fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: run: | { echo 'json<> $GITHUB_OUTPUT ci: