https://github.com/arcblock/action-version-check
https://github.com/arcblock/action-version-check
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arcblock/action-version-check
- Owner: ArcBlock
- Created: 2022-04-11T01:25:13.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-02T15:29:29.000Z (about 2 years ago)
- Last Synced: 2025-02-18T16:38:27.148Z (over 1 year ago)
- Language: JavaScript
- Size: 777 KB
- Stars: 0
- Watchers: 15
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# action-version-check
This is a Github Action that ensures that your PR has updated version.
## Usage
```yml
name: "Check Version"
on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize
branches:
- master
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: Arcblock/action-version-check@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
working-directory: ''
```
## Rules
1. The updated version must be larger than the current version
1. Version updates greater than 1 are not allowed. e.g. 1.0.0 -> 1.0.3, 1.0.0 -> 1.2.0, 1.3.3 -> 3.0.0, such updates will fail
1. To update the major version, then you need to include [release-major] in the PR title
1. To update the minor version, then you need to include [release-minor] in the PR title
## Skip the check
Add the `[skip version]` keyword to PR title to skip the check.