Skip to content

Update README.md to make contribution steps easier to follow #63

Update README.md to make contribution steps easier to follow

Update README.md to make contribution steps easier to follow #63

Workflow file for this run

name: Verify Contribution
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name != github.repository && github.actor != 'dependabot[bot]'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get Changed Files
id: files
uses: tj-actions/changed-files@v41
with:
files: "**/*.json"
- run: |
readarray -t all_files <<<"$(jq -r '.[]' <<<'${{ steps.files.outputs.all_changed_files }}')"
for file in ${all_files[@]}; do
[[ ''${file}'' == *.jsonc ]] || (echo "Not a JSON file: ${file}" && exit 1)
[[ ''${file}'' == commandGroups/* ]] || [[ ''${file}'' == profiles/* ]] || (echo "Wrong location: ${file}" && exit 1)
done