Skip to content

Validate release metadata #1582

Validate release metadata

Validate release metadata #1582

Workflow file for this run

name: Validate release metadata
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
jobs:
validate:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt -y install jq curl
- name: Run validation script
run: "git rm $(find docs/metadata/vendor -name '*.json' ! -name all.json | xargs -t -P 8 -I % -n 1 bin/validate.bash %) || true"
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git status
git diff-index --quiet HEAD || git commit -m "Remove invalid release metadata"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}