Skip to content

Commit

Permalink
Eindeutige ids in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tobidope committed Jan 29, 2025
1 parent f292275 commit 7f7815b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/buildcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
uses: actions/checkout@v4

- name: Restore cache
id: restore-cache
uses: actions/cache/restore@v4
with:
path: ~/.m2/repository
Expand All @@ -37,6 +38,7 @@ jobs:

- name: Save cache
uses: actions/cache/save@v4
if: steps.restore-cache.outputs.cache-hit != 'true'
with:
path: ~/.m2/repository
key: cache-${{ hashFiles('setup-build.xml') }}-${{ hashFiles('**/pom.xml') }}
2 changes: 2 additions & 0 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
uses: actions/checkout@v4

- name: Restore cache
id: restore-cache
uses: actions/cache/restore@v4
with:
path: ~/.m2/repository
Expand All @@ -41,6 +42,7 @@ jobs:
- name: Save cache
uses: actions/cache/save@v4
if: steps.restore-cache.outputs.cache-hit != 'true'
with:
path: ~/.m2/repository
key: cache-${{ hashFiles('setup-build.xml') }}-${{ hashFiles('**/pom.xml') }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
uses: actions/checkout@v4

- name: Restore cache
id: restore-cache
uses: actions/cache/restore@v4
with:
path: ~/.m2/repository
Expand All @@ -36,6 +37,7 @@ jobs:
- name: Save cache
uses: actions/cache/save@v4
if: steps.restore-cache.outputs.cache-hit != 'true'
with:
path: ~/.m2/repository
key: cache-${{ hashFiles('setup-build.xml') }}-${{ hashFiles('**/pom.xml') }}
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Reusable build steps

on:
workflow_call:
workflow_dispatch:

jobs:
setup-java-and-cache:
Expand All @@ -19,18 +18,18 @@ jobs:
uses: actions/checkout@v4

- name: Restore cache
id: cache
id: restore-cache
uses: actions/cache/restore@v4
with:
path: ~/.m2/repository
key: cache-${{ hashFiles('setup-build.xml') }}

- name: Run setup-build.xml
if: steps.cache.outputs.cache-hit != 'true'
if: steps.restore-cache.outputs.cache-hit != 'true'
run: mvn --batch-mode --file setup-build.xml clean initialize

- name: Save cache
if: steps.cache.outputs.cache-hit != 'true'
if: steps.restore-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ~/.m2/repository
Expand Down

0 comments on commit 7f7815b

Please sign in to comment.