Skip to content

Commit

Permalink
Merge pull request #1251 from godaddy/workflow-fix
Browse files Browse the repository at this point in the history
[cicd] c# release workflow updates
  • Loading branch information
aka-bo authored Mar 4, 2025
2 parents 330b881 + 3b233d2 commit afebb7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/csharp-logging-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ jobs:
run: |
echo "BASE_VERSION=$(grep -o '<Version>.*<.*>' Directory.Build.props | sed 's/<Version>\(.*\)<.*>/\1/')" >> $GITHUB_ENV
echo "VERSION_SUFFIX=$(echo ${BASE_VERSION} | cut -f2 -d'-')" >> $GITHUB_ENV
echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
echo "BRANCH=${{ github.event.workflow_run.head_branch }}" >> $GITHUB_ENV
echo "GITHUB_SHA=${{ github.event.workflow_run.head_sha }}" >> $GITHUB_ENV
working-directory: csharp/Logging

- name: Publish C# Logging
if: startsWith('release-', github.env.BRANCH) && github.env.VERSION_SUFFIX != 'alpha'
if: startsWith(github.env.BRANCH, 'release-') && github.env.VERSION_SUFFIX != 'alpha'
run: |
./scripts/release_prod.sh
env:
Expand Down

0 comments on commit afebb7b

Please sign in to comment.