Skip to content

Commit

Permalink
Create Update Gradle Cache Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Jun 11, 2024
1 parent e21ea37 commit 3795135
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/updateGradleCache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Updates the Gradle Cache when Necessary (from https://github.com/GregTechCEu/GregTech/blob/master/.github/workflows/update_gradle_cache.yml)
name: Update Gradle Cache

on:
push:
branches:
- master
paths: ['gradle/**', '**.gradle', 'gradle.properties', 'gradlew**', 'src/main/resources/*_at.cfg']
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
update-cache:
name: Update Grade Cache
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Build
uses: ./.github/actions/build_setup
with:
update-cache: true

- name: Build Project with Gradle
run: ./gradlew assemble --warning-mode all --build-cache

0 comments on commit 3795135

Please sign in to comment.