From ae573d06a21067ebda3c54ef66cf1ce828c15d3f Mon Sep 17 00:00:00 2001 From: Kori Kuzma Date: Wed, 12 Feb 2025 10:55:26 -0500 Subject: [PATCH] pr comments --- .github/workflows/release.yml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f09a00f6..271f1070 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,25 +4,11 @@ on: tags: - "*.*.**" jobs: - get_branch: - runs-on: ubuntu-latest - outputs: - branch_name: ${{ steps.get_branch_name.outputs.name }} - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Get branch name - id: get_branch_name - run: | - raw=$(git branch -r --contains ${{ github.ref }}) - branch=$(echo "$raw" | grep "origin/main" | grep -v "HEAD" | sed "s|origin/||" | xargs) - echo "name=$branch" >> "$GITHUB_OUTPUT" build: name: Build distribution runs-on: ubuntu-latest needs: get_branch - if: needs.get_branch.outputs.branch_name == 'main' + if: ${{ github.ref == 'refs/heads/main' }} steps: - uses: actions/checkout@v4 - name: Set up Python