Skip to content

Commit

Permalink
Various fixes to release process workflows (#58)
Browse files Browse the repository at this point in the history
* Add Back `git config` commands

* Use Double Asterisk

* Update working-directory

* Add Start to name
  • Loading branch information
justindbaur authored Dec 6, 2024
1 parent 6e8a4ae commit 798c2d2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pack-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ jobs:

- name: Pack
run: dotnet pack -c Release -p:IsPreRelease=$IS_PRERELEASE
working-directory: '${{ needs.parse.outputs.package }}/src'
working-directory: './extensions/${{ needs.parse.outputs.package }}/src'
env:
IS_PRERELEASE: ${{ inputs.prerelease }}

- name: Get current version
id: current-version
run: echo "VERSION=$(dotnet msbuild -p:IsPreRelease=$IS_PRERELEASE --getProperty:Version)" >> $GITHUB_OUTPUT
working-directory: '${{ needs.parse.outputs.package }}/src'
working-directory: './extensions/${{ needs.parse.outputs.package }}/src'
env:
IS_PRERELEASE: ${{ inputs.prerelease }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Perform prerelease
on:
push:
paths:
- "release/*"
- "release/**"

jobs:
prerelease:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/start-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Start release
run-name: Starting release for ${{ inputs.package }}

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
return;
}
// Configure Git
await exec.exec(`git config user.name "github-actions"`);
await exec.exec(`git config user.email "[email protected]"`);
const versionBumpBranch = `version-bump/${packageName}-to-${newVersion}`;
await exec.exec(`git checkout -b ${versionBumpBranch}`);
Expand Down

0 comments on commit 798c2d2

Please sign in to comment.