Skip to content

Commit 57e8380

Browse files
update pom version and add maven cache (#36)
1 parent cf4e819 commit 57e8380

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ jobs:
1414
with:
1515
java-version: 8
1616

17+
- name: Cache local Maven repository
18+
uses: actions/cache@v2
19+
with:
20+
path: ~/.m2/repository
21+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
22+
restore-keys: |
23+
${{ runner.os }}-maven-
24+
1725
- name: Run tests with Maven
1826
env:
1927
CX_CLIENT_ID: ${{ secrets.CLIENT_ID}}

.github/workflows/release.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ jobs:
3939
- name: Update the POM version.
4040
run: mvn -B versions:set -DnewVersion='${{ env.RELEASE_VERSION }}' --file pom.xml -DskipTests
4141

42-
- name: Commit pom change version
43-
run: |
44-
git config user.name github-actions
45-
git config user.email [email protected]
46-
git add pom.xml
47-
git commit -m '[auto-release] Update pom version'
48-
git push
49-
5042
- name: Publish package
5143
run: mvn --batch-mode deploy -DskipTests
5244
env:

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55

66
<groupId>com.checkmarx.ast</groupId>
77
<artifactId>ast-cli-java-wrapper</artifactId>
8-
<version>1.0.17</version>
8+
<version>${ast.wrapper.version}</version>
99
<packaging>jar</packaging>
1010

1111
<name>Checkmarx AST Client</name>
1212
<description>Checkmarx AST ClI SDK</description>
1313
<url>https://www.checkmarx.com</url>
1414

1515
<properties>
16+
<ast.wrapper.version>dev</ast.wrapper.version>
1617
<maven.compiler.source>8</maven.compiler.source>
1718
<maven.compiler.target>8</maven.compiler.target>
1819
</properties>

0 commit comments

Comments
 (0)