Skip to content

Commit

Permalink
CI: Remove unneeded job_metadata gate
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 4, 2024
1 parent 5012049 commit 7dbcbae
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,6 @@ concurrency:
cancel-in-progress: true

jobs:
# Extract metadata to allow for conditioning builds on commit messages
job_metadata:
runs-on: ubuntu-latest
outputs:
commit_message: ${{ steps.get_commit_message.outputs.commit_message }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Print head git commit message
id: get_commit_message
run: |
if [[ -z "$COMMIT_MSG" ]]; then
COMMIT_MSG=$(git show -s --format=%s $REF)
fi
echo commit_message=$COMMIT_MSG | tee -a $GITHUB_OUTPUT
env:
COMMIT_MSG: ${{ github.event.head_commit.message }}
REF: ${{ github.event.pull_request.head.sha }}

build-sdist:
name: Build sdist
runs-on: ubuntu-latest
Expand All @@ -54,9 +33,8 @@ jobs:
build-wheel:
# Runs on tags and commits with "[build wheels]" in the message
name: Build wheel for ${{ matrix.python }}-${{ matrix.buildplat[1] }}
needs: [job_metadata, build-sdist]
needs: [build-sdist]
runs-on: ${{ matrix.buildplat[0] }}
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') || contains(needs.job_metadata.outputs.commit_message, '[build wheels]')
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 7dbcbae

Please sign in to comment.