diff --git a/.github/workflows/make-version.yml b/.github/workflows/make-version.yml index 723e08c991..95bff91f9e 100644 --- a/.github/workflows/make-version.yml +++ b/.github/workflows/make-version.yml @@ -6,6 +6,11 @@ on: release-type: description: 'Release type (major, minor, patch)' required: false + type: choice + options: + - major + - minor + - patch permissions: contents: read @@ -34,13 +39,13 @@ jobs: node-version: ${{ env.NODE_VERSION }} cache: "npm" - name: Setup dependencies - uses: aws-powertools/actions/.github/actions/cached-node-modules@da5bcb1a3d22f87bc48b570c818d26f44c0fc960 # v1.3.0 + uses: aws-powertools/actions/.github/actions/cached-node-modules@743fa57a003787b157991ea5c6e3cf0d40468676 # v1.4.0 with: node-version: ${{ env.NODE_VERSION }} build: "false" - name: Version and changelog id: version-n-changelog - uses: aws-powertools/actions/.github/actions/version-n-changelog@da5bcb1a3d22f87bc48b570c818d26f44c0fc960 # v1.3.0 + uses: aws-powertools/actions/.github/actions/version-n-changelog@743fa57a003787b157991ea5c6e3cf0d40468676 # v1.4.0 with: release-type: ${{ github.event.inputs.release-type }} - name: Update user agent version @@ -50,7 +55,7 @@ jobs: run: git add . - name: Create PR id: create-pr - uses: aws-powertools/actions/.github/actions/create-pr@da5bcb1a3d22f87bc48b570c818d26f44c0fc960 # v1.3.0 + uses: aws-powertools/actions/.github/actions/create-pr@743fa57a003787b157991ea5c6e3cf0d40468676 # v1.4.0 with: temp_branch_prefix: "ci-bump" pull_request_title: "chore(ci): bump version to ${{ steps.version-n-changelog.outputs.new-version }}"