Skip to content

Commit 7dbcbae

Browse files
committed
CI: Remove unneeded job_metadata gate
1 parent 5012049 commit 7dbcbae

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

.github/workflows/wheels.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,6 @@ concurrency:
1616
cancel-in-progress: true
1717

1818
jobs:
19-
# Extract metadata to allow for conditioning builds on commit messages
20-
job_metadata:
21-
runs-on: ubuntu-latest
22-
outputs:
23-
commit_message: ${{ steps.get_commit_message.outputs.commit_message }}
24-
steps:
25-
- name: Checkout
26-
uses: actions/checkout@v3
27-
with:
28-
fetch-depth: 2
29-
- name: Print head git commit message
30-
id: get_commit_message
31-
run: |
32-
if [[ -z "$COMMIT_MSG" ]]; then
33-
COMMIT_MSG=$(git show -s --format=%s $REF)
34-
fi
35-
echo commit_message=$COMMIT_MSG | tee -a $GITHUB_OUTPUT
36-
env:
37-
COMMIT_MSG: ${{ github.event.head_commit.message }}
38-
REF: ${{ github.event.pull_request.head.sha }}
39-
4019
build-sdist:
4120
name: Build sdist
4221
runs-on: ubuntu-latest
@@ -54,9 +33,8 @@ jobs:
5433
build-wheel:
5534
# Runs on tags and commits with "[build wheels]" in the message
5635
name: Build wheel for ${{ matrix.python }}-${{ matrix.buildplat[1] }}
57-
needs: [job_metadata, build-sdist]
36+
needs: [build-sdist]
5837
runs-on: ${{ matrix.buildplat[0] }}
59-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') || contains(needs.job_metadata.outputs.commit_message, '[build wheels]')
6038
strategy:
6139
fail-fast: false
6240
matrix:

0 commit comments

Comments
 (0)