From ed5211bd18f56042b7fed4c59e7ba667a62ae499 Mon Sep 17 00:00:00 2001 From: Gerard Setho Date: Thu, 18 Jan 2024 09:20:08 +0800 Subject: [PATCH 1/2] XDR-5434: Add an environment for Semantic Release (feat) --- .github/workflows/semantic-release.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/semantic-release.yaml b/.github/workflows/semantic-release.yaml index 77c0d1b..0ffde1a 100644 --- a/.github/workflows/semantic-release.yaml +++ b/.github/workflows/semantic-release.yaml @@ -6,6 +6,12 @@ on: required: true NPM_ACCESS_TOKEN: required: false + inputs: + environment: + description: The environment that this job references. + required: false + type: string + default: '' outputs: semver: description: The semantic version inferred from the commit history and assigned to the current commit hash. @@ -13,6 +19,7 @@ on: jobs: semantic-release: runs-on: ubuntu-latest + environment: ${{ inputs.environment } } outputs: semver: ${{ steps.get-semver.outputs.semver }} steps: From dbaed31a59c097531b38e28a0a8e54a73405b1ca Mon Sep 17 00:00:00 2001 From: Gerard Setho Date: Thu, 18 Jan 2024 14:20:18 +0800 Subject: [PATCH 2/2] XDR-5434: Fix syntax error (patch) --- .github/workflows/semantic-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/semantic-release.yaml b/.github/workflows/semantic-release.yaml index 0ffde1a..17329e5 100644 --- a/.github/workflows/semantic-release.yaml +++ b/.github/workflows/semantic-release.yaml @@ -19,7 +19,7 @@ on: jobs: semantic-release: runs-on: ubuntu-latest - environment: ${{ inputs.environment } } + environment: ${{ inputs.environment }} outputs: semver: ${{ steps.get-semver.outputs.semver }} steps: