From ae0fd4ed64e2c70aedffa0e9286b22b9c89456dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Taveira=20Ara=C3=BAjo?= Date: Wed, 22 May 2024 10:39:05 -0700 Subject: [PATCH] ci: fix release workflow --- .github/workflows/release.yaml | 4 ++-- .github/workflows/static-upload.yaml | 21 ++++++++++++++++----- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 45888ad1..2186e100 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -107,8 +107,8 @@ jobs: github.actor != 'dependabot[bot]' && needs.github-release.outputs.version != '' secrets: inherit - env: - VERSION: ${{ needs.github-release.outputs.VERSION }} + with: + version: ${{ needs.github-release.outputs.VERSION }} aws-release: needs: [fetch-regions, github-release, tests] diff --git a/.github/workflows/static-upload.yaml b/.github/workflows/static-upload.yaml index e2ec3b00..4e61f706 100644 --- a/.github/workflows/static-upload.yaml +++ b/.github/workflows/static-upload.yaml @@ -1,12 +1,21 @@ name: Upload static assets on: - push: - branches: - - main workflow_dispatch: - pull_request: - + inputs: + version: + description: 'Version metadata tag to attach to S3 object' + default: '' + required: false + type: string + workflow_call: + inputs: + version: + description: 'Version metadata tag to attach to S3 object' + default: '' + required: false + type: string + env: S3_BUCKET_PREFIX: observeinc @@ -47,3 +56,5 @@ jobs: - name: Sync run: make static-upload + with: + VERSION: ${{ inputs.version }}