-
-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (33 loc) · 1.19 KB
/
test_empty_pack_with_latest_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Test - Empty resource pack (latest PackSquash build)
on:
push:
pull_request:
types:
- opened
- synchronize
workflow_dispatch:
schedule:
# Check the action works with the latest PackSquash build every
# 2 days. Ideally we should check this when a commit is pushed
# to the master branch of the PackSquash repository, but doing
# so requires a PAT to send a repository_dispatch dispatch event,
# and we do not want to mess with that
- cron: '0 12 * * 1,3,5,0'
jobs:
test:
runs-on: ubuntu-latest
# Exclude in-repo PRs from running this job
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
steps:
- name: Clone repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Generate minimal PackSquash options file
run: echo 'pack_directory = "test/empty_resource_pack"' > packsquash-options.toml
- name: Run PackSquash
uses: ./ # Uses an action in the root directory
with:
packsquash_version: latest-unstable
options: |
pack_directory = 'test/empty_resource_pack'