Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma authored Feb 12, 2025
1 parent be5c036 commit ae573d0
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae573d0

Please sign in to comment.