Skip to content

Commit

Permalink
Cherry pick branch 'genexuslabs:build/commit-msg-on-reusable-workflow…
Browse files Browse the repository at this point in the history
…' into beta
  • Loading branch information
anaiberta authored and Beta Bot committed Jan 6, 2025
1 parent 2994c5e commit faf4a55
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:

outputs:
NUGET_VERSION: ${{ steps.buildVariables.outputs.NUGET_PACKAGE_VERSION }}
LAST_COMMITTER: ${{ steps.buildVariables.outputs.LAST_COMMITTER }}
COMMIT_MESSAGE: ${{ steps.buildVariables.outputs.COMMIT_MESSAGE }}
SHOULD_DEPLOY: ${{ steps.buildVariables.outputs.SHOULD_DEPLOY }}

steps:
Expand Down Expand Up @@ -57,8 +55,6 @@ jobs:
}
}
$COMMIT_NUMBER = @($(git rev-list --count origin/master..), $(git rev-list --count HEAD))[$IsPrerelease]
$COMMIT_MESSAGE = $(git log -1 --pretty=%B)
$LAST_COMMITTER = $(git log -1 --pretty=format:%an)
$GetFileVersionOutput = dotnet msbuild ./Directory.Build.props /t:GetFileVersionForPackage /p:COMMIT_NUMBER=$COMMIT_NUMBER /p:VersionSuffix="" /p:UseDefaultSuffix=false
"$GetFileVersionOutput" -match "(?<=FileVersion:)(.*)" > $null
Expand All @@ -75,8 +71,6 @@ jobs:
echo "IsPrerelease=$IsPrerelease" >> $env:GITHUB_ENV
echo "NUGET_PACKAGE_VERSION=$NUGET_PACKAGE_VERSION" >> $env:GITHUB_OUTPUT
echo "SHOULD_DEPLOY=$SHOULD_DEPLOY" >> $env:GITHUB_OUTPUT
echo "LAST_COMMITTER=$LAST_COMMITTER" >> $env:GITHUB_OUTPUT
echo "COMMIT_MESSAGE=$COMMIT_MESSAGE" >> $env:GITHUB_OUTPUT
- name: Generate package
env:
Expand Down Expand Up @@ -151,6 +145,4 @@ jobs:
with:
VERSION: ${{ needs.build.outputs.NUGET_VERSION }}
PACKAGE_NAMES: "GeneXus.DeploymentTargets"
COMMIT_MESSAGE: ${{ needs.build.outputs.COMMIT_MESSAGE }}
COMMITTER: ${{ needs.build.outputs.LAST_COMMITTER }}
secrets: inherit

0 comments on commit faf4a55

Please sign in to comment.