Check Ubuntu Versions #327
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: 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. |