Skip to content

Commit

Permalink
remove primary_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-martinsmith committed Aug 20, 2024
1 parent 509233b commit f48bada
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ env:
BUILD_PLATFORM: Any CPU
PACK_PARAMETERS: ''
NUGET_OUTPUT_FOLDER: nupkgs
PRIMARY_BRANCH: refs/heads/main

on:
push:
Expand Down Expand Up @@ -44,7 +43,7 @@ jobs:
branch="${{ github.ref }}"
package_suffix=''
if [ "$branch" != "${{ env.PRIMARY_BRANCH }}" ]
if [ "$branch" != "refs/heads/main" ]
then
package_suffix='-beta'
fi
Expand All @@ -59,7 +58,7 @@ jobs:
if [ "${{ github.event_name }}" == "pull_request" ]
then
should_publish=true
elif [ "${{ github.ref }}" == "${{ env.PRIMARY_BRANCH }}" ]
elif [ "${{ github.ref }}" == "refs/heads/main" ]
then
should_publish=true
fi
Expand Down Expand Up @@ -152,7 +151,7 @@ jobs:
## Generate a Release and Tag in git
release:
name: Create GitHub Release
if: github.ref == "${{ env.PRIMARY_BRANCH }}" && success()
if: github.ref == "refs/heads/main" && success()

needs:
- setup
Expand Down

0 comments on commit f48bada

Please sign in to comment.