Validate release metadata #1985
This file contains hidden or 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: Validate release metadata | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 3 * * *' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate: | |
| runs-on: 'ubuntu-latest' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25' | |
| - name: Run validation (Go implementation) | |
| run: | | |
| go run ./cmd/java-metadata validate \ | |
| --metadata-dir=./docs/metadata \ | |
| --concurrency=10 \ | |
| --delete || true | |
| - name: Diff | |
| run: | | |
| git add docs/ | |
| git diff --cached | |
| #- 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 }} |