Skip to content

CryptGain Ecosytem

CryptGain Ecosytem #2

Workflow file for this run

name: Validate filenames & JSON informations
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Dependencies
run: |
sudo apt install imagemagick-6.q16
shell: bash
- name: Collecting file paths
run: |
echo "FILE_PATHS=$(find ./tokens -type f -name '*info.json' -printf '%p,'| sed 's/,$//' )" >> $GITHUB_ENV
shell: bash
- id: files
name: Validate files
uses: jitterbit/get-changed-files@v1
- run: |
source .github/snippet.sh ; validate_file_size ${{ steps.files.outputs.added_modified }}
source .github/snippet.sh ; validate_filenames ${{ steps.files.outputs.added_modified }}
source .github/snippet.sh ; validate_png_dimensions ${{ steps.files.outputs.added_modified }}
source .github/snippet.sh ; validate_svg_square ${{ steps.files.outputs.added_modified }}
shell: bash
- name: Validate token existence
run: |
source .github/snippet.sh; validate_token_existence
shell: bash
- name: Validate JSON
uses: docker://orrosenblatt/validate-json-action:latest
env:
INPUT_SCHEMA: ./schema.json
INPUT_JSONS: ${{ env.FILE_PATHS }}