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 #