From e1b4c341f2fb4914e9c75c7abeeba2de623508ec Mon Sep 17 00:00:00 2001 From: nolancon Date: Fri, 24 May 2024 15:16:48 +0000 Subject: [PATCH] Add missing env vars --- .github/workflows/release-candidate-pr.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-candidate-pr.yml b/.github/workflows/release-candidate-pr.yml index 6d8f466c..9df0f726 100644 --- a/.github/workflows/release-candidate-pr.yml +++ b/.github/workflows/release-candidate-pr.yml @@ -13,6 +13,16 @@ permissions: contents: write pull-requests: write +env: + # Common versions + GO_VERSION: '1.21' + DOCKER_BUILDX_VERSION: 'v0.9.1' + + # Common users. We can't run a step 'if secrets.XXX != ""' but we can run a + # step 'if env.XXX' != ""', so we copy these to succinctly test whether + # credentials have been provided before trying to run steps that need them. + UPBOUND_MARKETPLACE_PUSH_ROBOT_USR: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }} + jobs: create-rc-pr: # We don't want to run this on main upon merging the PR we are creating. @@ -110,7 +120,6 @@ jobs: # publish only works on branches main, master and release- run: | git checkout -b release-$VERSION - make publish BRANCH_NAME=release-$VERSION - name: Publish Artifacts if: env.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR != ''