Skip to content

Commit

Permalink
🤖 updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KafCoppelia committed Oct 8, 2023
1 parent 7312a60 commit 4309860
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
6 changes: 4 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ categories:
- title: "🧰 Maintenance"
label: "chore"

change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
change-template: "- $TITLE [@$AUTHOR](https://github.com/$AUTHOR) ([#$NUMBER]($URL))"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
Expand All @@ -32,4 +34,4 @@ template: |
$CHANGES
Changelog: [`$PREVIOUS_TAG...`](https://github.com/MinatoAquaCrews/nonebot_plugin_tarot/compare/$PREVIOUS_TAG...)
Changelog: [`$PREVIOUS_TAG...v$RESOLVED_VERSION`](https://github.com/MinatoAquaCrews/nonebot_plugin_crazy_thursday/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION)
4 changes: 2 additions & 2 deletions .github/workflows/poetry-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ env.TAG_NAME }}

- name: Publish python poetry package
uses: JRubics/poetry-publish@v1.16
uses: JRubics/poetry-publish@v1.17
with:
python_version: "3.10"
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ name: Release Drafter

on:
push:
tags:
- v*
pull_request_target:
branches:
- master

pull_request:
types: [opened, reopened, synchronize]
types:
- closed

permissions:
contents: read
Expand All @@ -19,7 +21,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: master

Expand Down
12 changes: 9 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ repos:
- id: isort
stages: [commit]

- repo: https://github.com/hhatto/autopep8
rev: v2.0.4
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: autopep8
- id: black
stages: [commit]

- repo: https://github.com/pre-commit/mirrors-prettier
Expand All @@ -34,3 +34,9 @@ repos:
- id: check-added-large-files
- id: mixed-line-ending
- id: check-json

- repo: https://github.com/python-poetry/poetry
rev: 1.6.1
hooks:
- id: poetry-check
- id: poetry-lock

0 comments on commit 4309860

Please sign in to comment.