Skip to content

Commit

Permalink
ci: various improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravencentric committed Nov 17, 2024
1 parent d18ff29 commit d6fa98e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/cliff-template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ body = """
{% endif %}\
{% if '```' in commit.message %}\
{{ commit.message | upper_first }}\n\
([{{ commit.id | truncate(length=7, end="") }}](REPOSITORY_URL/commit/{{ commit.id }})) - ({{ commit.author.name }})\
[`{{ commit.id | truncate(length=7, end="") }}`](REPOSITORY_URL/commit/{{ commit.id }}) - {{ commit.author.name }}\
{% else %}\
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](REPOSITORY_URL/commit/{{ commit.id }})) - ({{ commit.author.name }})\
{{ commit.message | upper_first }} [`{{ commit.id | truncate(length=7, end="") }}`](REPOSITORY_URL/commit/{{ commit.id }}) - {{ commit.author.name }}\
{% endif %}\
{% if commit.breaking %}\
{% for breakingChange in commit.footers %}\
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
- mkdocs.yml
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
deploy:
permissions:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint-and-type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@ on:
tags:
- 'v*.*.*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
name: Tests
uses: ./.github/workflows/tests.yml
release:
name: Release
needs: [tests]
environment:
name: release
url: https://pypi.org/project/pyanilist/
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
- 'tests/**'
- '.github/workflows/test.yml'
workflow_dispatch:
workflow_call:

defaults:
run:
Expand Down

0 comments on commit d6fa98e

Please sign in to comment.