generated from bitwarden/template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Matt Bishop <[email protected]>
- Loading branch information
1 parent
343a2c7
commit b09057e
Showing
1 changed file
with
7 additions
and
7 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 |
---|---|---|
|
@@ -23,7 +23,7 @@ env: | |
|
||
jobs: | ||
build-artifact: | ||
name: Build Artifact | ||
name: Build artifacts | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out repo | ||
|
@@ -38,7 +38,7 @@ jobs: | |
env: | ||
IS_PRERELEASE: ${{ inputs.type == 'prerelease' }} | ||
|
||
- name: Get Current Version | ||
- name: Get current version | ||
id: current-version | ||
run: echo "VERSION=$(dotnet msbuild -p:IsPreRelease=$IS_PRERELEASE --getProperty:Version)" | ||
env: | ||
|
@@ -52,7 +52,7 @@ jobs: | |
const package = '${{ inputs.package }}'; | ||
const currentVersion = '${{ steps.current-version.outputs.VERSION }}'; | ||
// configure git | ||
// Configure Git | ||
await exec.exec(`git config user.name "github-actions"`); | ||
await exec.exec(`git config user.email "[email protected]"`); | ||
|
@@ -98,14 +98,14 @@ jobs: | |
console.log("Finished creating release."); | ||
- name: Run Version Bumper | ||
- name: Bump version | ||
id: version-bumper | ||
shell: pwsh | ||
env: | ||
PACKAGE_NAME: ${{ inputs.package }} | ||
BUMP_TYPE: ${{ inputs.type }} | ||
run: | | ||
echo "NEW_VERSION=$(./scrips/UpdatePackageVersion.ps1 -PackageName $env:PACKAGE_NAME -BumpType $env:BUMP_TYPE)" >> $env:GITHUB_OUTPUT | ||
echo "NEW_VERSION=$(./scripts/UpdatePackageVersion.ps1 -PackageName $env:PACKAGE_NAME -BumpType $env:BUMP_TYPE)" >> $env:GITHUB_OUTPUT | ||
- name: Create PR | ||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | ||
|
@@ -116,7 +116,7 @@ jobs: | |
const bumpType = '${{ inputs.type }}'; | ||
const newVersion = '${{ steps.version-bumper.outputs.NEW_VERSION }}'; | ||
// configure git | ||
// Configure Git | ||
await exec.exec(`git config user.name "github-actions"`); | ||
await exec.exec(`git config user.email "[email protected]"`); | ||
|
@@ -131,7 +131,7 @@ jobs: | |
shouldOpenPullRequest = false; | ||
} catch { } | ||
// add and commit changes | ||
// Add and commit changes | ||
const commitMessage = `Bump ${packageName} version to ${newVersion}`; | ||
const gitCommitCommand = `git commit --all --message "${commitMessage}"`; | ||
let gitCommitOutput = `$ ${gitCommitCommand}\n\n`; | ||
|