Skip to content

Commit

Permalink
DRY cache paths
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAfroOfDoom committed Sep 4, 2024
1 parent fb19111 commit 65f151c
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/actions/setup-animated-java-exports/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ description: >
Attempts to restore Animated Java export files from cache.
If cache not hit, installs Animated Java and runs our auto-exporter
cache-paths: &cache-paths |
datapacks/animated_java/data
datapacks/animated_java/data.ajmeta
resourcepack/assets.ajmeta
resourcepack/assets/animated_java
resourcepack/assets/minecraft/models/item/white_dye.json

runs:
using: composite
steps:
Expand All @@ -12,21 +19,11 @@ runs:
id: cache-animated-java-exports
with:
key: cache-animated-java-exports-${{ env.BLOCKBENCH_URL }}-${{ env.ANIMATED_JAVA_URL }}-${{ hashFiles('resourcepack/assets/omega-flowey/models/**/*.ajblueprint')}}
path: |
datapacks/animated_java/data
datapacks/animated_java/data.ajmeta
resourcepack/assets.ajmeta
resourcepack/assets/animated_java
resourcepack/assets/minecraft/models/item/white_dye.json
path: *cache-paths
- run: bash ${{ github.action_path }}/install-animated-java-and-run-auto-exporter.sh
if: ${{ steps.cache-animated-java-exports.outputs.cache-hit != 'true' }}
shell: bash
- uses: actions/cache/save@v4
with:
key: ${{ steps.cache-animated-java-exports.outputs.cache-primary-key }}
path: |
datapacks/animated_java/data
datapacks/animated_java/data.ajmeta
resourcepack/assets.ajmeta
resourcepack/assets/animated_java
resourcepack/assets/minecraft/models/item/white_dye.json
path: *cache-paths

0 comments on commit 65f151c

Please sign in to comment.