Updating collection cardio #8843
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validation Flow | |
on: [push] | |
jobs: | |
Validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '12.x' | |
- name: Install dependencies | |
run: npm install | |
- name: Validation script | |
run: node validate.js | |
- name: Notify if failure | |
if: ${{ failure() }} | |
run: echo "Validation failed! :-(" | |
- name: Copy on success | |
if: ${{ success() }} | |
run: | | |
echo "Validation succeeded! :-D" | |
git config --local user.email "[email protected]" | |
git config --local user.name "timbot22" | |
cp unvalidated_activity_list.jsonld activity-list.jsonld | |
git add activity-list.jsonld | |
git commit --allow-empty -m "[ci skip] Activity list export validated" | |
git push --force https://github.com/openactive/activity-list.git HEAD:master |