-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: externalize powershell to module (#23)
* chore: normalize actions * fix: use ConventionalVersioning module
- Loading branch information
Showing
6 changed files
with
38 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,61 @@ | ||
name: 'Conventional Versioning: new release' | ||
description: 'Create Github Release using SemVer when pushing Conventional Comits' | ||
name: "Conventional Versioning: new release" | ||
description: "Create Github Release using SemVer when pushing Conventional Comits" | ||
author: ArwynFr | ||
branding: | ||
icon: tag | ||
color: blue | ||
|
||
inputs: | ||
|
||
pattern: | ||
description: 'Pattern of files to include in the release' | ||
description: "Pattern of files to include in the release" | ||
required: false | ||
|
||
allow-additional-modifiers: | ||
description: 'Whether this action supports additional modifiers and footers for minor and patch updates.' | ||
description: "Whether this action supports additional modifiers and footers for minor and patch updates." | ||
required: false | ||
default: 'false' | ||
default: "false" | ||
|
||
feat-upgrades-minor: | ||
description: 'Whether this action should increment a minor bump when the commit type is feat.' | ||
description: "Whether this action should increment a minor bump when the commit type is feat." | ||
required: false | ||
default: 'true' | ||
default: "true" | ||
|
||
strict-types: | ||
description: 'Whether this action should fail if the commit type is a custom type.' | ||
description: "Whether this action should fail if the commit type is a custom type." | ||
required: false | ||
default: 'false' | ||
default: "false" | ||
|
||
outputs: | ||
|
||
current-version: | ||
description: 'Current release version number found in the repository' | ||
description: "Current release version number found in the repository" | ||
value: ${{ steps.new-github-release.outputs.current-version }} | ||
|
||
bump-type: | ||
description: 'Type of version bump based on commit message' | ||
description: "Type of version bump based on commit message" | ||
value: ${{ steps.new-github-release.outputs.bump-type }} | ||
|
||
next-version: | ||
description: 'Calculated target version of the new release' | ||
description: "Calculated target version of the new release" | ||
value: ${{ steps.new-github-release.outputs.next-version }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- shell: pwsh | ||
- uses: arwynfr/actions-conventional-versioning/get-newVersion@v3 | ||
id: new-github-release | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
& "${env:GITHUB_ACTION_PATH}/functions/Get-NewVersion.ps1" ` | ||
-RepositoryName "${{ github.repository }}" ` | ||
-CommitMessage "${{ github.event.head_commit.message }}" ` | ||
-FeatUpgradesMinor:$${{ inputs.feat-upgrades-minor }} ` | ||
-AllowAdditionalModifiers:$${{ inputs.allow-additional-modifiers }} | ||
with: | ||
allow-additional-modifiers: ${{ inputs.allow-additional-modifiers }} | ||
feat-upgrades-minor: ${{ inputs.feat-upgrades-minor }} | ||
strict-types: ${{ inputs.strict-types }} | ||
|
||
- shell: pwsh | ||
name: Publish a new release on Github | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
& "${env:GITHUB_ACTION_PATH}/functions/New-GithubRelease.ps1" ` | ||
-RepositoryName "${{ github.repository }}" ` | ||
New-GithubRelease ` | ||
-Pattern "${{ inputs.pattern }}" ` | ||
-RepositoryName "${{ github.repository }}" ` | ||
-NextVersion ${{ steps.new-github-release.outputs.next-version }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters