-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.28 KB
/
Copy pathupdate-compiler-versions.yml
File metadata and controls
42 lines (36 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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@v7
- 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 }}"