GitHub action that can do automatic releases if at least one pull request was merged in specified period of time.
To use this action in your project, create workflow in your project similar to this code (Note: some parts and arguments needs to be altered):
name: Automatic releases
on:
workflow_dispatch:
schedule:
- cron: '0 4 * * 1'
jobs:
auto-release:
runs-on: ubuntu-latest
steps:
- name: Releasing if there is something new...
uses: impresscms-dev/[email protected]
with:
release_branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: patch
This action supports such arguments (used in with
keyword):
Argument | Required | Default value | Description |
---|---|---|---|
github_token | No | github_token | GitHub token. |
release_branch | No | main | Branch that will be used for releases |
default_bump | No | patch | How to bump version? Major.Minor.Patch |
This action outputs such data, that can be used for other actions:
Variable | Description |
---|---|
not_released | Returns if new version was released |
new_version | New version tag |
If you want to add some functionality or fix bugs, you can fork, change and create pull request. If you not sure how this works, try interactive GitHub tutorial.
If you found any bug or have some questions, use issues tab and write there your questions.