-
Notifications
You must be signed in to change notification settings - Fork 1
78 lines (65 loc) · 2.33 KB
/
Copy pathcheck-versions.yml
File metadata and controls
78 lines (65 loc) · 2.33 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Check Ubuntu Versions
on:
schedule:
# Run daily at 00:00 UTC
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
version:
description: 'Check specific version (e.g., 24.04.3)'
required: false
type: string
dry_run:
description: 'Dry run - show what would be done without making changes'
required: false
type: boolean
default: false
jobs:
check-versions:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.14'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Check for new versions
run: |
COMMAND="python3 scripts/check_new_versions.py"
# Add specific version parameter if provided
if [ "${{ github.event.inputs.version }}" != "" ]; then
COMMAND="$COMMAND --version ${{ github.event.inputs.version }}"
fi
# Add dry-run flag if requested
if [ "${{ github.event.inputs.dry_run }}" == "true" ]; then
COMMAND="$COMMAND --dry-run"
fi
echo "Running command: $COMMAND"
eval $COMMAND
- name: Create Pull Request
if: github.event.inputs.dry_run != 'true'
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Auto: Add new Ubuntu version templates"
branch: auto-version-update
delete-branch: true
title: "Auto: Add new Ubuntu version templates"
body: |
This PR was automatically created by the version checker workflow.
## Changes
- Discovered and added new Ubuntu version templates
- Templates include all available spins (Kubuntu, Xubuntu, Lubuntu, etc.)
- SHA256 checksums and sizes are empty and need to be filled using `update_iso_info.py`
## Next Steps
After merging this PR, run the `update-iso-info` workflow to download ISOs and calculate checksums.
Please review the changes before merging.