From 798c2d2adaf767bdfc21d9a88bd97a80e1e3ab0f Mon Sep 17 00:00:00 2001 From: Justin Baur <19896123+justindbaur@users.noreply.github.com> Date: Fri, 6 Dec 2024 12:51:50 -0500 Subject: [PATCH] Various fixes to release process workflows (#58) * Add Back `git config` commands * Use Double Asterisk * Update working-directory * Add Start to name --- .github/workflows/pack-and-release.yml | 4 ++-- .github/workflows/prerelease.yml | 2 +- .github/workflows/start-release.yml | 2 +- .github/workflows/version-bump.yml | 4 ++++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pack-and-release.yml b/.github/workflows/pack-and-release.yml index 9a74f4b..915d4a5 100644 --- a/.github/workflows/pack-and-release.yml +++ b/.github/workflows/pack-and-release.yml @@ -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 }} diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 5b4ec8c..56e0353 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -3,7 +3,7 @@ name: Perform prerelease on: push: paths: - - "release/*" + - "release/**" jobs: prerelease: diff --git a/.github/workflows/start-release.yml b/.github/workflows/start-release.yml index 6ab639e..8b0f1b6 100644 --- a/.github/workflows/start-release.yml +++ b/.github/workflows/start-release.yml @@ -1,4 +1,4 @@ -name: Release +name: Start release run-name: Starting release for ${{ inputs.package }} on: diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index d6952a7..cb9f09b 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -47,6 +47,10 @@ jobs: return; } + // Configure Git + await exec.exec(`git config user.name "github-actions"`); + await exec.exec(`git config user.email "github-actions@github.com"`); + const versionBumpBranch = `version-bump/${packageName}-to-${newVersion}`; await exec.exec(`git checkout -b ${versionBumpBranch}`);