Skip to content

Commit

Permalink
Added actions-project-version-check step @maven-pr (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortizam authored Jul 29, 2022
1 parent e43ce9d commit 34a7863
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/maven-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ After you have these installed, you need to add the Spring Cloud Contract Maven
<dependency>
<groupId>net.coru</groupId>
<artifactId>scc-multiapi-converter</artifactId>
<version>2.6.1</version>
<version>2.7.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>net.coru</groupId>
<artifactId>scc-multiapi-converter</artifactId>
<version>2.7.0</version>
<version>2.7.1</version>
<name>SCC-MultiApi-Converter</name>
<description>Generates Spring Cloud Contracts based on an OpenApi and AsyncApi document</description>
<url>https://github.com/corunet/scc-multiapi-converter</url>
Expand Down

0 comments on commit 34a7863

Please sign in to comment.