mirror of
https://github.com/natekspencer/hacs-oasis_mini.git
synced 2025-11-08 05:03:52 -05:00
Add GHA for updating track details
This commit is contained in:
30
.github/workflows/update-tracks.yml
vendored
Normal file
30
.github/workflows/update-tracks.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Update tracks
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 18 * * *"
|
||||
jobs:
|
||||
tracks:
|
||||
name: Search and update new tracks
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Python 3.12
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
- name: Install dependencies
|
||||
run: pip install homeassistant
|
||||
- name: Update tracks
|
||||
env:
|
||||
GROUNDED_TOKEN: ${{ secrets.GROUNDED_TOKEN }}
|
||||
run: python update_tracks.py
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v6
|
||||
with:
|
||||
commit-message: Update tracks
|
||||
title: Update tracks
|
||||
body: Update tracks
|
||||
base: main
|
||||
labels: automated-pr, tracks
|
||||
branch: update-tracks
|
||||
Reference in New Issue
Block a user