From 3339f11b952a1d7fb4cf000ad4c2d0ab2f133687 Mon Sep 17 00:00:00 2001 From: Webb Scales Date: Tue, 9 Apr 2024 20:23:20 -0400 Subject: [PATCH] Pass Go/Python versions as an input to sub-workflows --- .github/workflows/build.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ee934da1..a7ff632d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,6 +10,8 @@ jobs: lint_and_test: name: lint and test uses: arcalot/arcaflow-reusable-workflows/.github/workflows/go_lint_and_test.yaml@main + with: + go_version: ${{ vars.ARCALOT_GO_VERSION }} generate: name: go generate runs-on: ubuntu-latest @@ -36,13 +38,19 @@ jobs: needs: - lint_and_test - generate + uses: arcalot/arcaflow-reusable-workflows/.github/workflows/go_release.yaml@main + secrets: + QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} + QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} with: + go_version: ${{ vars.ARCALOT_GO_VERSION }} for_release: ${{ startsWith(github.event.ref, 'refs/tags/') }} - uses: arcalot/arcaflow-reusable-workflows/.github/workflows/go_release.yaml@main build_python_wheel: name: build python wheel needs: - release + uses: arcalot/arcaflow-reusable-workflows/.github/workflows/python_release.yaml@main secrets: PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} - uses: arcalot/arcaflow-reusable-workflows/.github/workflows/python_release.yaml@main + with: + python_version: ${{ vars.ARCALOT_PYTHON_VERSION }}