Skip to content

Try ubuntu-24.04

Try ubuntu-24.04 #309

Workflow file for this run

name: Update versions
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
schedule:
- cron: 0 13 * * 5
permissions:
pull-requests: write
contents: write
jobs:
update:
runs-on: ubuntu-24.04
steps:
- name: Check out ${{ github.repository }}
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up Python 3
uses: actions/[email protected]
with:
python-version: '3'
cache: 'pip'
cache-dependency-path: 'requirements.txt'
- name: Install dependencies
run: |
pip3 install --upgrade pip
pip3 install -r requirements.txt
- name: Update versions.txt file
run: |
scripts/manage_versions.py update_versions_file
- name: Commit changes to a new branch
if: ${{ success() && !contains(fromJSON('["push", "pull_request"]'), github.event_name) }}
uses: devops-infra/[email protected]
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
commit_prefix: "[AUTO]"
commit_message: "Update versions.txt"
force: false
target_branch: update/version
- name: Create pull request
if: ${{ success() && !contains(fromJSON('["push", "pull_request"]'), github.event_name) }}
uses: devops-infra/[email protected]
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
source_branch: update/version
target_branch: main
title: Update versions.txt
body: "Changes have been detected to watched Python versions. Please review."
assignee: rffontenelle
get_diff: true