Skip to content

Commit

Permalink
Updating github-config (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
paketo-bot authored Nov 5, 2021
1 parent 5b1d9f4 commit 9c1101e
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/create-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ on:
- main
repository_dispatch:
types: [ version-bump ]
workflow_dispatch: {}
workflow_dispatch:
inputs:
version:
description: 'Version of the release to cut (e.g. 1.2.3)'
required: false

concurrency: release

Expand Down Expand Up @@ -59,11 +63,21 @@ jobs:
with:
repo: ${{ github.repository }}
token: ${{ github.token }}
- name: Tag
id: tag
uses: paketo-buildpacks/github-config/actions/tag/increment-tag@main
- name: Calculate Semver Tag
if: github.event.inputs.version == ''
id: semver
uses: paketo-buildpacks/github-config/actions/tag/calculate-semver@main
with:
current_version: ${{ steps.reset.outputs.current_version }}
repo: ${{ github.repository }}
token: ${{ github.token }}
- name: Set Release Tag
id: tag
run: |
tag="${{ github.event.inputs.version }}"
if [ -z "${tag}" ]; then
tag="${{ steps.semver.outputs.tag }}"
fi
echo "::set-output name=tag::${tag}"
- name: Package
run: ./scripts/package.sh --version "${{ steps.tag.outputs.tag }}"
- name: Create Release Notes
Expand Down

0 comments on commit 9c1101e

Please sign in to comment.