-
-
Notifications
You must be signed in to change notification settings - Fork 186
38 lines (38 loc) · 1.26 KB
/
validate.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
36
37
38
name: Validate ckans
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
Validate:
runs-on: ubuntu-latest
steps:
- name: Get CKAN-meta repo
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Cache downloads
if: ${{ github.event_name == 'pull_request' }}
uses: actions/cache@v4
with:
path: .cache
key: downloads-${{ github.run_id }}
restore-keys: |
downloads-
- name: Test modified ckans
uses: KSP-CKAN/xKAN-meta_testing@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}
EVENT_BEFORE: ${{ github.event.before }}
with:
source: commits
pull request url: ${{ github.event.pull_request.url }}
- name: Chmod cached files so actions/cache can read them
run: sudo chmod -R a+r .cache