Skip to content

Commit

Permalink
Merge pull request #1882 from 9renpoto/next
Browse files Browse the repository at this point in the history
chore: add bump schedule
  • Loading branch information
9renpoto authored Nov 26, 2023
2 parents 9d4b8e7 + 09b6f59 commit 1c5f057
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/bump-schedule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Bump version (cron)

on:
schedule:
- cron: '15 3 * * TUE'

jobs:
scheduled_bump:
uses: ./.github/workflows/bump.yml
secrets: inherit
with:
semver: minor
10 changes: 6 additions & 4 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,17 @@ jobs:
);
return notes.data.body;
- name: generate title
run: echo "## v${{ steps.get_version.outputs.NEW_VERSION }} ($(date '+%Y-%m-%d'))" > new
- run: echo "${{ steps.get_release_note.outputs.result }}" >> new
- run: |
cat << EOF >> new
## v${{ steps.get_version.outputs.NEW_VERSION }} ($(date '+%Y-%m-%d'))
${{ steps.get_release_note.outputs.result }}
EOF
- run: cat new ./CHANGELOG.md > temp
- run: mv temp ./CHANGELOG.md
- run: rm new

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5.0.2
uses: peter-evans/create-pull-request@v5
with:
base: main
branch: main-${{ steps.get_version.outputs.NEW_VERSION }}
Expand Down

0 comments on commit 1c5f057

Please sign in to comment.