Skip to content

Commit

Permalink
ci: only check out state in pr workflow, cache images
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats authored Dec 18, 2024
1 parent afec1af commit 92cfbc1
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/pull_request_dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,38 +45,46 @@ jobs:
terminal-to-html --version
- name: Checkout manifests from incoming PR
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: goatcorp/DalamudPluginsD17
path: manifests
ref: ${{ github.event.client_payload.ref }}

- name: Checkout manifests from master
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: goatcorp/DalamudPluginsD17
path: manifests-master
ref: main

- name: Checkout Plogon
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: goatcorp/Plogon
#ref: V1.0.6
path: Plogon

- name: Checkout Dist
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: goatcorp/PluginDistD17
path: output
ref: main
sparse-checkout: |
state.json
sparse-checkout-cone-mode: false

- name: Create required folders
run: |
mkdir artifacts
mkdir static
mkdir work
# TODO: Use future plogon config as cache key
- name: Cache Docker images.
uses: ScribeMD/docker-cache@0.5.0
with:
key: docker-${{ runner.os }} #-${{ hashFiles(paths) }}

# - name: Cache docker image
# uses: actions/cache@v3
Expand Down

0 comments on commit 92cfbc1

Please sign in to comment.