From 1e62087693a51cc6e80e36e3a73366bbc301d08a Mon Sep 17 00:00:00 2001 From: Alexander Berger Date: Wed, 24 Apr 2024 08:34:58 -0400 Subject: [PATCH 1/2] Attempting a different syntax for step conditional --- .github/workflows/release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8344f77..efedccd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,6 +44,7 @@ jobs: should_release: ${{ steps.version_check.outputs.should_release }} prerelease: ${{ steps.version_check.outputs.prerelease }} version: ${{ steps.version_check.outputs.version }} + schedule_prod_release: ${{ steps.version_check.outputs.schedule_prod_release }} steps: - name: Check out code uses: actions/checkout@v3 @@ -93,13 +94,13 @@ jobs: build: name: "Build" needs: [ test, check-coverage, format-lint, version ] - if: steps.version_check.outputs.should_release == 'true' + if: jobs.version.outputs.should_release == 'true' uses: ./.github/workflows/_skaffold-build-k8s.yml secrets: inherit deploy_sqa: name: "Deploy: SQA" needs: [build, version] - if: steps.version_check.outputs.should_release == 'true' + if: jobs.version.outputs.should_release == 'true' uses: ./.github/workflows/_skaffold-deploy-k8s.yml secrets: inherit with: @@ -107,7 +108,7 @@ jobs: deploy_stage: name: "Deploy: Stage" needs: [ build, version, deploy_sqa] - if: steps.version_check.outputs.schedule_prod_release == 'true' + if: jobs.version.outputs.schedule_prod_release == 'true' uses: ./.github/workflows/_skaffold-deploy-k8s.yml secrets: inherit with: @@ -115,7 +116,7 @@ jobs: deploy_prod: name: "Deploy: Prod" needs: [ build, version, deploy_stage] - if: steps.version_check.outputs.schedule_prod_release == 'true' + if: jobs.version.outputs.schedule_prod_release == 'true' uses: ./.github/workflows/_skaffold-deploy-k8s.yml secrets: inherit with: @@ -124,7 +125,7 @@ jobs: name: "Create Github Release Draft" runs-on: ubuntu-latest needs: [ deploy_prod ] - if: steps.version_check.outputs.schedule_prod_release == 'true' + if: jobs.version.outputs.schedule_prod_release == 'true' steps: - name: Create GitHub Release uses: softprops/action-gh-release@v1 From e7a8090c9cbbffb9d6220f5739289e9b94a4c7b3 Mon Sep 17 00:00:00 2001 From: Alexander Berger Date: Wed, 24 Apr 2024 08:53:25 -0400 Subject: [PATCH 2/2] Bumping version number --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7da3a9e..6eec609 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "geneweaver-api" -version = "0.4.0b1" +version = "0.4.0b2" description = "The Geneweaver API" authors = [ "Alexander Berger ",