Skip to content

Commit

Permalink
🤖 updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KafCoppelia committed Oct 7, 2023
1 parent fde7659 commit 9593c1f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
9 changes: 7 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ categories:
- "bug"
- title: "🧰 Maintenance"
label: "chore"
- title: "📝 Doc"
labels:
- "documentation"

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 @@ -33,4 +38,4 @@ template: |
$CHANGES
Changelog: [`$PREVIOUS_TAG...`](https://github.com/MinatoAquaCrews/nonebot_plugin_crazy_thursday/compare/$PREVIOUS_TAG...)
Changelog: [`$PREVIOUS_TAG...`](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
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

0 comments on commit 9593c1f

Please sign in to comment.