From 60e77872178c3e1f41c6bbce127e695b655b8d45 Mon Sep 17 00:00:00 2001 From: Lukas Gravley Date: Fri, 25 Mar 2022 10:20:52 -0500 Subject: [PATCH] manual trigger (#2681) --- .github/workflows/deploy-release.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-release.yml b/.github/workflows/deploy-release.yml index 21b4e46a..5ac5c3a0 100644 --- a/.github/workflows/deploy-release.yml +++ b/.github/workflows/deploy-release.yml @@ -16,7 +16,14 @@ name: Deploy Release on: # Start when a release is published release: - types: [published, edited] + types: [published] + workflow_dispatch: + # Set the input variables you want to pull in + inputs: + release_version: + description: 'version to release. Ex: v4.3.2' + required: true + default: 'v' ############### # Set the Job # @@ -50,10 +57,6 @@ jobs: ############################ - name: Checkout Code uses: actions/checkout@v3 - with: - # Full git history is needed to get a proper list - # of changed files within `super-linter` - fetch-depth: 0 ########################### # Set current date to ENV # @@ -97,6 +100,11 @@ jobs: echo "RELEASE_VERSION=$(echo ${{ github.event.release.name }} \ | grep -E -o "v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+")" \ >> "${GITHUB_ENV}" + if [ -z "${RELEASE_VERSION}" ]; then + echo "No release version found in environment, using input..." + echo "RELEASE_VERSION=${{ github.event.inputs.release_version }}" \ + >> "${GITHUB_ENV}" + fi ######################### # Update deployment API #