Skip to content

Commit

Permalink
build: reduce triggers for release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
boidolr committed Oct 8, 2024
1 parent 729163b commit 6f82a7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: Publish release
on: create
on:
push:
tags: ["v**"]

permissions:
contents: write

jobs:
create-release:
runs-on: ubuntu-latest
if: |
startsWith(github.ref, 'refs/tags/v') &&
github.actor == 'boidolr'
if: github.actor == 'boidolr'

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Create release for tag
run: |
TAG=$(echo "${{ github.ref }}" | cut -c 11-)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ For an extended example see [`.pre-commit-config.yaml`](.pre-commit-config.yaml)
Install the package to get access to the scripts defined as command line entry points in [`pyproject.toml`](./pyproject.toml).
The scripts accept the arguments given for the pre-commit hooks. Additionally they exepect to receive the file names to work on.

An example invocation could be `format-yaml --preserve-quotes .github/release.yml`.
An example invocation could be `uvx --from 'git+https://github.com/boidolr/pre-commit-text.git' format-yaml --preserve-quotes .github/release.yml`.

Available entry points are:

Expand Down

0 comments on commit 6f82a7c

Please sign in to comment.