File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed
actions/orchestrator-cache Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 66 description : ' Prefix for the cache key (default: orchestrator)'
77 required : false
88 default : ' orchestrator'
9+ save :
10+ description : ' Whether to save the cache on the default branch (default: true)'
11+ required : false
12+ default : ' true'
913
1014runs :
1115 using : composite
1822 echo "ORCHESTRATOR_HOME=${{ github.workspace }}/orchestrator" >> $GITHUB_ENV
1923
2024 # Restore only on branches (no save) - allows branches to read from default branch's cache
21- - name : Restore Orchestrator cache (branches)
22- if : github.ref_name != github.event.repository.default_branch
25+ # Also used when save is disabled
26+ - name : Restore Orchestrator cache (restore only)
27+ if : github.ref_name != github.event.repository.default_branch || inputs.save != 'true'
2328 uses : actions/cache/restore@v5
2429 with :
2530 path : ${{ env.ORCHESTRATOR_HOME }}
2833
2934 # Full cache on default branch (save enabled) - uses run_id for rolling cache
3035 - name : Cache Orchestrator (default branch)
31- if : github.ref_name == github.event.repository.default_branch
36+ if : github.ref_name == github.event.repository.default_branch && inputs.save == 'true'
3237 uses : SonarSource/gh-action_cache@v1
3338 with :
3439 path : ${{ env.ORCHESTRATOR_HOME }}
Original file line number Diff line number Diff line change @@ -829,7 +829,9 @@ jobs:
829829 - *download_sonarjs_m2
830830 - *config_maven
831831 - *get_licenses_token
832- - *orchestrator_cache
832+ - uses : ./.github/actions/orchestrator-cache
833+ with :
834+ save : ' false'
833835 - name : Run Ruling Tests
834836 run : |
835837 cd its/ruling
@@ -857,7 +859,9 @@ jobs:
857859 - *download_sonarjs_m2
858860 - *config_maven
859861 - *get_licenses_token
860- - *orchestrator_cache
862+ - uses : ./.github/actions/orchestrator-cache
863+ with :
864+ save : ' false'
861865 - name : Run CSS Ruling
862866 run : |
863867 cd its/ruling
Original file line number Diff line number Diff line change 269269 <dependency >
270270 <groupId >ch.qos.logback</groupId >
271271 <artifactId >logback-classic</artifactId >
272- <version >1.5.22 </version >
272+ <version >1.5.23 </version >
273273 <scope >test</scope >
274274 </dependency >
275275 <dependency >
You can’t perform that action at this time.
0 commit comments