Skip to content

Commit e1d7962

Browse files
authored
ci: remove get_branch job for pypi release (#616) (#617)
* This is from over 4 years ago and I don't think we actually need this. There are times when we want to create releases off other branches (and its easy to forget to update). I think we should just remove Cherry-picked b573565
1 parent 29c0eec commit e1d7962

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,9 @@ on:
44
tags:
55
- "*.*.**"
66
jobs:
7-
get_branch:
8-
runs-on: ubuntu-latest
9-
outputs:
10-
branch_name: ${{ steps.get_branch_name.outputs.name }}
11-
steps:
12-
- uses: actions/checkout@v4
13-
with:
14-
fetch-depth: 0
15-
- name: Get branch name
16-
id: get_branch_name
17-
run: |
18-
raw=$(git branch -r --contains ${{ github.ref }})
19-
branch=$(echo "$raw" | grep "origin/main" | grep -v "HEAD" | sed "s|origin/||" | xargs)
20-
echo "name=$branch" >> "$GITHUB_OUTPUT"
217
build:
228
name: Build distribution
239
runs-on: ubuntu-latest
24-
needs: get_branch
25-
if: needs.get_branch.outputs.branch_name == 'main'
2610
steps:
2711
- uses: actions/checkout@v4
2812
- name: Set up Python

0 commit comments

Comments
 (0)