Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Validate changed .ckan files with the CKAN metadata tester
name: Validate ckans
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
Validate:
runs-on: ubuntu-latest
steps:
- name: Get CKAN-meta repo
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Cache downloads
if: ${{ github.event_name == 'pull_request' }}
uses: actions/cache@v5
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:
game: KSA
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