Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
52c9485
test
tooomm Apr 11, 2020
ab7ba29
install libxml2
tooomm Oct 12, 2020
98289fa
Update .travis.yml
tooomm Oct 12, 2020
caece25
Update .travis.yml
tooomm Oct 12, 2020
0b38845
Update .travis.yml
tooomm Oct 12, 2020
798ac98
Update .travis.yml
tooomm Oct 12, 2020
1acf66e
Update .travis.yml
tooomm Oct 12, 2020
cff883f
Update .travis.yml
tooomm Oct 12, 2020
3b66c4e
Update .travis.yml
tooomm Oct 12, 2020
0de32fc
validate xmls in travis
tooomm Oct 12, 2020
6085bf1
Update .travis.yml
tooomm Oct 12, 2020
90db293
Update .travis.yml
tooomm Oct 12, 2020
6680aba
Update .travis.yml
tooomm Oct 12, 2020
8f64208
Merge branch 'master' into tooomm-test
tooomm Oct 12, 2020
e497f60
Merge branch 'master' into tooomm-test
tooomm Oct 13, 2020
532c6d6
remove travis
tooomm Mar 3, 2021
ccd0a36
add gh actions
tooomm Mar 3, 2021
f3071fb
validate xsd
tooomm Mar 3, 2021
136eda4
rename
tooomm Mar 3, 2021
b243609
Merge branch 'master' into tooomm-test
tooomm Mar 3, 2021
6e2e07d
status
tooomm Mar 3, 2021
2bf2a45
Merge branch 'tooomm-test' of https://github.com/Cockatrice/Magic-Tok…
tooomm Mar 3, 2021
0ab8850
try via action
tooomm Jul 11, 2021
a994640
add problem matcher
tooomm Jul 11, 2021
4527eb5
tweak
tooomm Jul 11, 2021
c73fcaf
Update tokens.xml
tooomm Jul 11, 2021
114e7b3
don't use action
tooomm Jul 11, 2021
36b3353
tweak badge
tooomm Jul 11, 2021
1302880
skip on md only changes
tooomm Jul 11, 2021
a3aa4a1
test readme change
tooomm Jul 11, 2021
ba3cab5
add schema link
tooomm Sep 23, 2021
3309460
Merge branch 'master' into tooomm-test
tooomm Sep 23, 2021
b6703a9
regroup and add useful conditions
tooomm Feb 6, 2022
28a26b0
restructure
tooomm Feb 6, 2022
fe90da3
Merge branch 'master' into tooomm-test
tooomm Jun 2, 2022
02fd36a
Merge branch 'master' into tooomm-test
tooomm Jun 2, 2022
0cdc02a
Update validation.yml
tooomm Jun 2, 2022
c272a62
Merge branch 'master' into tooomm-test
tooomm Apr 29, 2023
dba762e
update checkout action
tooomm Apr 29, 2023
0e0144e
Merge branch 'master' into tooomm-test
tooomm May 1, 2023
3fde64c
remove v3 + cleanup
tooomm May 1, 2023
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
49 changes: 49 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: XML Validation

on:
push:
branches: [ master ]
paths:
- '.github/workflows/validation.yml'
- '**.xml'
pull_request:
branches: [ master ]
paths:
- '.github/workflows/validation.yml'
- '**.xml'
workflow_dispatch:
schedule:
# Runs at the start of each month (UTC)
- cron: '0 0 1 * *'

jobs:
validate-xml:
name: 'xmllint'
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt-get install libxml2-utils

- name: Enable problem matcher
uses: korelstar/xmllint-problem-matcher@v1

- name: Download and validate XSD schema for card database v4
id: xsd
run: |
wget https://www.w3.org/2012/04/XMLSchema.xsd # Download XSD meta schema to validate xsd files against
wget https://raw.githubusercontent.com/Cockatrice/Cockatrice/master/doc/carddatabase_v4/cards.xsd -O carddb_v4.xsd
xmllint --noout --schema XMLSchema.xsd carddb_v4.xsd

- name: Validate tokens.xml
if: steps.xsd.outcome == 'success'
run: |
xmllint --noout --schema carddb_v4.xsd tokens.xml

- name: Validate challenge_tokens.xml
if: steps.xsd.outcome == 'success'
run: |
xmllint --noout --schema carddb_v4.xsd challenge_tokens.xml
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Discord](https://img.shields.io/discord/314987288398659595?label=Discord&logo=discord&logoColor=white)](https://discord.gg/3Z9yzmA) [![Gitter Chat](https://img.shields.io/gitter/room/Cockatrice/Magic-Spoiler)](https://gitter.im/Cockatrice/Magic-Spoiler)

Magic-Token [![](https://img.shields.io/badge/dynamic/xml.svg?label=version&url=https%3A%2F%2Fraw.githubusercontent.com%2FCockatrice%2FMagic-Token%2Fmaster%2Ftokens.xml&query=%2F%2FsourceVersion)](https://github.com/Cockatrice/Magic-Token/blob/master/tokens.xml) [![Picture Health](https://github.com/Cockatrice/Magic-Token/actions/workflows/check_links.yml/badge.svg?branch=master)](https://github.com/Cockatrice/Magic-Token/actions/workflows/check_links.yml?query=branch%3Amaster)
Magic-Token [![](https://img.shields.io/badge/dynamic/xml.svg?label=version&url=https%3A%2F%2Fraw.githubusercontent.com%2FCockatrice%2FMagic-Token%2Fmaster%2Ftokens.xml&query=%2F%2FsourceVersion)](https://github.com/Cockatrice/Magic-Token/blob/master/tokens.xml) [![XML Validation](https://github.com/Cockatrice/Magic-Token/actions/workflows/validation.yml/badge.svg?branch=master)](https://github.com/Cockatrice/Magic-Token/actions/workflows/validation.yml?query=branch%3Amaster) [![Picture Health](https://github.com/Cockatrice/Magic-Token/actions/workflows/check_links.yml/badge.svg?branch=master)](https://github.com/Cockatrice/Magic-Token/actions/workflows/check_links.yml?query=branch%3Amaster)
=================

This repo contains token information in [Cockatrice](https://github.com/cockatrice/cockatrice)'s [XML card database format](https://github.com/Cockatrice/Cockatrice/wiki/Custom-Cards-&-Sets#to-add-your-own-custom-cards-follow-these-steps) for Magic: The Gathering.<br />
Expand All @@ -9,3 +9,7 @@ It describes [![](https://img.shields.io/badge/dynamic/xml.svg?label=&colorB=whi
For normal tokens, save the file found here: [**tokens.xml**](https://raw.githubusercontent.com/Cockatrice/Magic-Token/master/tokens.xml)

For tokens from the Theros block challege decks, save the file found here: [**challenge_tokens.xml**](https://raw.githubusercontent.com/Cockatrice/Magic-Token/master/challenge_tokens.xml)

<br>

Information & Documentation: https://github.com/Cockatrice/Magic-Token/wiki#documentation
2 changes: 1 addition & 1 deletion challenge_tokens.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<cockatrice_carddatabase version="4">
<cockatrice_carddatabase version="4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/Cockatrice/Cockatrice/master/doc/carddatabase_v4/cards.xsd">
<sets>
<set>
<name>FTH</name>
Expand Down