Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zengxs committed Jan 2, 2024
1 parent 10404cd commit 91b943b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ on:
push:
paths-ignore:
- README*.md
- LICENSE
- .editorconfig
- .gitignore
- .github/workflows/syncver.yml
branches-ignore:
# The autobump** branches will be triggered in the pull request,
# The syncver** branches will be triggered in the pull request,
# so there is no need to trigger it when pushing.
- autobump**
- syncver**
pull_request:

jobs:
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/autobump.yml → .github/workflows/syncver.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Automatic check for updates, if new version is available, submit a pull request
# to update the version number in .github/workflows/build.yml

name: autobump
name: syncver
on:
schedule:
- cron: "35 4 * * *"
push:
paths:
- .github/workflows/autobump.yml
- .github/workflows/syncver.yml
- check-update.py

jobs:
autobump:
syncver:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -38,9 +39,9 @@ jobs:
if: steps.check-update.outputs.new_version != ''
with:
token: ${{ secrets.CPR_TOKEN }}
commit-message: "Bump version to ${{ steps.check-update.outputs.new_version }}"
title: "Bump version to ${{ steps.check-update.outputs.new_version }}"
body: "Bump version to ${{ steps.check-update.outputs.new_version }}"
branch: autobump
commit-message: "Sync version to ${{ steps.check-update.outputs.new_version }}"
title: "Sync version to ${{ steps.check-update.outputs.new_version }}"
body: "Sync version to ${{ steps.check-update.outputs.new_version }}"
branch: syncver
branch-suffix: timestamp
delete-branch: true

0 comments on commit 91b943b

Please sign in to comment.