Skip to content

Commit af99be5

Browse files
committed
Add checkout step to Maven and publish workflows
Ensure the source code is checked out before setting up Java in both workflows. This prevents potential errors caused by missing source files during the build and publish processes.
1 parent 6cd8235 commit af99be5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/maven-publish.yml

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
REPOSITORY_TOKEN: ${{ secrets.REPOSITORY_TOKEN }}
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Checkout sources
13+
uses: actions/checkout@v4
1214
- name: Setup Java
1315
uses: actions/setup-java@v4
1416
with:

.github/workflows/publish.yml

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
99
runs-on: ubuntu-latest
1010
steps:
11+
- name: Checkout sources
12+
uses: actions/checkout@v4
1113
- name: Setup Java
1214
uses: actions/setup-java@v4
1315
with:

0 commit comments

Comments
 (0)