Skip to content

Commit

Permalink
fix: put persist-credentials flag properly
Browse files Browse the repository at this point in the history
Signed-off-by: Josep Prat <josep.prat@klaw-project.io>
  • Loading branch information
jlprat committed Oct 24, 2022
1 parent 68434f7 commit a4af3d2
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,27 @@ name: Java CI with Maven

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
build:
strategy:
matrix:
java-version: [ 11, 17 ]
runs-on: [ ubuntu-latest ]
java-version: [11, 17]
runs-on: [ubuntu-latest]
name: Jdk ${{ matrix.java-version }}, os ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: maven
- name: Build and run tests with Maven
run: mvn --batch-mode --update-snapshots verify
- uses: actions/checkout@v3
- with:
persist-credentials: false
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: "temurin"
cache: maven
- name: Build and run tests with Maven
run: mvn --batch-mode --update-snapshots verify

0 comments on commit a4af3d2

Please sign in to comment.