Skip to content

Update XC Compiler Versions #6

Update XC Compiler Versions

Update XC Compiler Versions #6

name: Update XC Compiler Versions
on:
schedule:
- cron: '0 8 * * 1' # Every Monday at 08:00 UTC
workflow_dispatch:
jobs:
check-versions:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v8.2.0
- name: Check for new compiler versions
id: check
run: uv run scripts/check-compiler-versions.py
- name: Create Pull Request
if: steps.check.outputs.updated == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -b chore/update-compiler-versions
git add .github/workflows/
git commit -m "chore: update XC compiler test versions"
git push --force origin chore/update-compiler-versions
gh pr create \
--title "chore: update XC compiler test versions" \
--body "${{ steps.check.outputs.summary }}" \
--base main \
--label dependencies \
|| gh pr edit chore/update-compiler-versions \
--body "${{ steps.check.outputs.summary }}"