Skip to content

Commit

Permalink
chore: update workflow to not publish, conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
dtbuchholz committed Apr 23, 2024
1 parent 9d4008a commit 2556f81
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,30 @@ on:
- completed

jobs:
check-pyproject-change:
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v4
- name: Check for pyproject.toml changes
id: filter
uses: dorny/paths-filter@v2
with:
filters: |
pyproject:
- 'pyproject.toml'
publish:
needs: check-pyproject-change
if: needs.check-pyproject-change.outputs.changed == 'true'
name: Build & publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11

Expand Down

0 comments on commit 2556f81

Please sign in to comment.