Skip to content

evals and benchmarking structure #38

evals and benchmarking structure

evals and benchmarking structure #38

Workflow file for this run

name: SPDX Header Checker
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- "main"
types:
- opened
- reopened
- synchronize
- assigned
- review_requested
jobs:
run-spdx-header-script:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
python-version: "3.8"
- name: Run SPDX Header Script
run: |
echo "Running SPDX header script on all files in the repository"
python ./scripts/add_spdx_header.py
- name: Check for changes
run: |
git status
if git diff --quiet; then
echo "No changes detected."
exit 0
else
echo "Changes detected, committing changes."
fi
- name: Commit changes
if: success()
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_user_name: SPDX-Bot
commit_user_email: [email protected]
commit_message: "🚨✨AUTOMATED COMMIT | Added missing SPDX license headers automatically"
branch: ${{ github.head_ref }}
commit_options: "--verbose"