-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Prod 2278/use a cron GitHub action to automate compatibility g…
…athering (#1077)
- Loading branch information
1 parent
151914c
commit 54a553b
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
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 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.12.3 | ||
3.12.0 |