Skip to content

add deploy workflow for hatch-vcs-tunable #12

add deploy workflow for hatch-vcs-tunable

add deploy workflow for hatch-vcs-tunable #12

name: 'pull request checking'
on:
pull_request:
types:
- opened
- synchronize
jobs:
which-paths:
runs-on: ubuntu-latest
outputs:
HATCH_VCS_TUNABLE_DIFF: ${{ steps.hatch-vcs-tunable-diff.outputs.HATCH_VCS_TUNABLE_DIFF }}
steps:
- name: Fetch repo for diffing
uses: actions/checkout@v3
- name: Check if vcs-tunable-analysis changed
uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
hatch-vcs-tunable/**/*
hatch-vcs-tunable/**/.*
- name: Set diff output for hatch-vcs-tunable
id: hatch-vcs-tunable-diff
run: |
echo "HATCH_VCS_TUNABLE_DIFF=\"${GIT_DIFF_FILTERED}\"" >> $GITHUB_OUTPUT
hatch-vcs-tunable-analysis:
if: ${{ contains(needs.which-paths.outputs.HATCH_VCS_TUNABLE_DIFF, 'hatch_vcs_tunable')}}
runs-on: ubuntu-latest
needs: [which-paths]
steps:
- name: Ask for news fragments
if: ${{ !contains(needs.which-paths.outputs.HATCH_VCS_TUNABLE_DIFF, 'changelog.d') }}
run: |
echo 'Please add a news fragment for your change.'
exit 1