-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added actions-project-version-check step @maven-pr (#69)
- Loading branch information
Showing
3 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,32 @@ on: | |
types: [ opened, synchronize, ready_for_review, review_requested ] | ||
|
||
jobs: | ||
check-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Check if version is updated | ||
uses: avides/[email protected] | ||
id: actions_project_version_check | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
file-to-check: pom.xml | ||
continue-on-error: true | ||
- name: Versioning specifications | ||
if: steps.actions_project_version_check.outcome != 'success' | ||
uses: thollander/actions-comment-pull-request@v1 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
message: Project version has not been updated in pom.xml. Please, update your version using https://semver.org specifications | ||
- name: Exit if fails | ||
if: steps.actions_project_version_check.outcome != 'success' | ||
uses: cutenode/action-always-fail@v1 | ||
- name: New software version | ||
if: steps.actions_project_version_check.outcome == 'success' | ||
run: echo "New software version is " ${{ steps.actions_project_version_check.outputs.version }} | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
|
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
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