⬇️ 降级特定依赖限制 #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Drafter | |
on: | |
pull_request_target: | |
branches: | |
- main | |
types: | |
- closed | |
workflow_dispatch: | |
jobs: | |
update-release-drafter: | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
concurrency: | |
group: pull-request-changelog | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
persist-credentials: false | |
token: ${{ secrets.BOT_TOKEN }} | |
- uses: release-drafter/release-drafter@v5 | |
id: release-drafter | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Update Changelog | |
uses: docker://ghcr.io/nonebot/auto-changelog:master | |
with: | |
latest_changes_position: '# Change Log\n\n' | |
latest_changes_title: "## 最近更新" | |
replace_regex: '(?<=## 最近更新\n)[\s\S]*?(?=\n## )' | |
changelog_body: ${{ steps.release-drafter.outputs.body }} | |
commit_and_push: false | |
- name: Commit and Push | |
run: | | |
git config user.name BotLunacub | |
git config user.email [email protected] | |
git remote set-url origin https://${{ secrets.GH_PAT }}@github.com/GuGuMur/nonebot-plugin-skland-arksign.git | |
git add . | |
git diff-index --quiet HEAD || git commit -m ":memo: Update changelog" | |
git push -f |