Skip to content

Commit

Permalink
feat: support recent semantic release versions (#38)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
rlespinasse and dependabot[bot] authored Dec 26, 2023
1 parent 943d72a commit f4912d4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
statuses: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-that.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

# test 1
- name: Test 'dry-run' input
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
concurrency:
group: release-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Release That
uses: ./
50 changes: 23 additions & 27 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,73 +1,69 @@
name: "Release That"
description: "Opinionated GitHub Action to ease the release of a repository"
author: "Romain Lespinasse"
name: 'Release That'
description: 'Opinionated GitHub Action to ease the release of a repository'
author: 'Romain Lespinasse'
inputs:
semantic_version:
required: true
# Read https://github.com/cycjimmy/semantic-release-action#semantic_version
default: "19.0.5"
default: ''
description: 'Specify specifying version range for semantic-release. If no version range is specified, latest version will be used by default'
dry-run:
description: "Whether to run semantic release in `dry-run` mode"
default: "false"
description: 'Whether to run semantic release in `dry-run` mode'
default: 'false'
required: true
major-tag:
description: "Whether to publish or update a major tag (e.g. v1)"
default: "auto"
description: 'Whether to publish or update a major tag (e.g. v1)'
default: 'auto'
required: true
without-prefix:
description: "Remove prefix from released version"
default: "false"
description: 'Remove prefix from released version'
default: 'false'
required: true
github-token:
description: "GitHub Token as provided by secrets"
description: 'GitHub Token as provided by secrets'
default: ${{ github.token }}
required: true
outputs:
# useful outputs from semantic-release-action
new_release_published:
description: "Whether a new release was published"
description: 'Whether a new release was published'
value: ${{ steps.semantic-release.outputs.new_release_published }}
new_release_version:
description: "Version of the new release"
description: 'Version of the new release'
value: ${{ steps.semantic-release.outputs.new_release_version }}
new_release_major_version:
description: "Major version of the new release"
description: 'Major version of the new release'
value: ${{ steps.semantic-release.outputs.new_release_major_version }}
new_release_minor_version:
description: "Minor version of the new release"
description: 'Minor version of the new release'
value: ${{ steps.semantic-release.outputs.new_release_minor_version }}
new_release_patch_version:
description: "Patch version of the new release"
description: 'Patch version of the new release'
value: ${{ steps.semantic-release.outputs.new_release_patch_version }}
last_release_version:
description: "Version of the previous release, if there was one."
description: 'Version of the previous release, if there was one.'
value: ${{ steps.semantic-release.outputs.last_release_version }}
major_tag_published:
description: "Whether a major tag was published"
description: 'Whether a major tag was published'
value: ${{ steps.major-tag.outputs.major_tag_published }}
major_tag:
description: "Value of the published major tag, otherwise empty"
description: 'Value of the published major tag, otherwise empty'
value: ${{ steps.major-tag.outputs.major_tag }}
branding:
icon: "package"
color: "gray-dark"
icon: 'package'
color: 'gray-dark'
runs:
using: "composite"
using: 'composite'
steps:
- uses: rlespinasse/github-slug-action@v4
- run: $GITHUB_ACTION_PATH/setup.sh
shell: bash
env:
INPUT_DRYRUN: ${{ inputs.dry-run }}
INPUT_WITHOUTPREFIX: ${{ inputs.without-prefix }}
# Read comments on https://github.com/cycjimmy/semantic-release-action/issues/159
- uses: actions/setup-node@v3
with:
node-version: '14'
- name: Semantic Release
id: semantic-release
uses: cycjimmy/semantic-release-action@v3
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: ${{ inputs.semantic_version }}
dry_run: ${{ inputs.dry-run }}
Expand Down

0 comments on commit f4912d4

Please sign in to comment.