Skip to content

Commit c99c360

Browse files
author
Alexander Scholz
committed
chore: test workflow
1 parent a0a2d37 commit c99c360

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/maven.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ name: Java CI with Maven
1010

1111
on:
1212
push:
13-
branches: [ "main" ]
13+
branches: ["main"]
1414
pull_request:
15-
branches: [ "main" ]
15+
branches: ["main"]
1616

1717
jobs:
1818
get-secret:
@@ -34,7 +34,7 @@ jobs:
3434
uses: azure/CLI@v1
3535
with:
3636
inlineScript: |
37-
SECRET_VALUE=$(az keyvault secret show --name <SECRET_NAME> --vault-name ${{ secrets.KEYVAULT_NAME }} --query value -o tsv)
37+
SECRET_VALUE=$(az keyvault secret show --name postgres-host --vault-name ${{ secrets.KEYVAULT_NAME }} --query value -o tsv)
3838
echo "::add-mask::$SECRET_VALUE"
3939
echo "SECRET_VALUE=$SECRET_VALUE" >> $GITHUB_ENV
4040
- name: Use retrieved secret
@@ -46,16 +46,15 @@ jobs:
4646
env:
4747
SECRET_VALUE: ${{ env.SECRET_VALUE }}
4848
build:
49-
5049
runs-on: ubuntu-latest
5150

5251
steps:
53-
- uses: actions/checkout@v4
54-
- name: Set up JDK 21
55-
uses: actions/setup-java@v4
56-
with:
57-
java-version: '21'
58-
distribution: 'temurin'
59-
cache: maven
60-
- name: Build with Maven
61-
run: mvn -B package --file pom.xml
52+
- uses: actions/checkout@v4
53+
- name: Set up JDK 21
54+
uses: actions/setup-java@v4
55+
with:
56+
java-version: "21"
57+
distribution: "temurin"
58+
cache: maven
59+
- name: Build with Maven
60+
run: mvn -B package --file pom.xml

0 commit comments

Comments
 (0)