diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml index ee4ff96..7681a91 100644 --- a/.github/workflows/semantic-release.yml +++ b/.github/workflows/semantic-release.yml @@ -2,13 +2,6 @@ name: Semantic Release on: - push: - branches: - - main - paths: - - pre_commit_hooks_dependency_sync/** - - '!pre_commit_hooks_dependency_sync/__init__.py' - workflow_dispatch: inputs: force-deployment: @@ -32,8 +25,11 @@ concurrency: jobs: release: + if: >- + github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' name: Release - uses: worganisation/github-config-files/.github/workflows/__semantic-release.yml@0.7.1 + # yamllint disable-line rule:line-length + uses: worganisation/github-config-files/.github/workflows/__semantic-release.yml@a3499886b00fc9840ca69480d9c1f799fbb78c83 with: python-version: '3.13' force-deployment: ${{ inputs.force-deployment != 'auto' && inputs.force-deployment || '' }}