Skip to content

Commit

Permalink
build: Prod 2278/use a cron GitHub action to automate compatibility g…
Browse files Browse the repository at this point in the history
…athering (#1077)
  • Loading branch information
seemywingz authored Jun 18, 2024
1 parent 151914c commit 54a553b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/compatibility-updater.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Utility / Compatibility Matrix Update

on:
schedule:
# Runs at 00:00 UTC every day
- cron: '0 0 * * *'

jobs:
run-compatibility-updater:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: setup pyenv
uses: "gabrielfalcao/pyenv-action@v18"

- name: Run compatibility matrix updater
run: |
cd utils/compatibility
source setup_env.sh
python main.py
- name: Get current date
id: date
run: echo "DATE=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: Compatibility Matrix Update ${{ steps.date.outputs.DATE }}
body: Automated Pull Request to update compatibility matrix
commit-message: Updated compatibility matrix ${{ steps.date.outputs.DATE }}
branch: compatibility-matrix-update-${{ steps.date.outputs.DATE }}
base: master
2 changes: 1 addition & 1 deletion utils/compatibility/.python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.12.3
3.12.0

0 comments on commit 54a553b

Please sign in to comment.