mirror of
https://github.com/natekspencer/hacs-oasis_mini.git
synced 2025-11-20 11:03:39 -05:00
Merge pull request #93 from natekspencer/update-tracks
Add manual trigger for update tracks Github action
This commit is contained in:
8
.github/workflows/update-tracks.yml
vendored
8
.github/workflows/update-tracks.yml
vendored
@@ -1,10 +1,14 @@
|
|||||||
name: Update tracks
|
name: Update tracks
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 19 * * 1"
|
- cron: "0 19 * * 1"
|
||||||
|
workflow_dispatch: {}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tracks:
|
tracks:
|
||||||
name: Search and update new tracks
|
name: Search and update new tracks
|
||||||
@@ -12,16 +16,20 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout the repo
|
- name: Checkout the repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python 3.13
|
- name: Set up Python 3.13
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.13"
|
python-version: "3.13"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install homeassistant
|
run: pip install homeassistant
|
||||||
|
|
||||||
- name: Update tracks
|
- name: Update tracks
|
||||||
env:
|
env:
|
||||||
GROUNDED_TOKEN: ${{ secrets.GROUNDED_TOKEN }}
|
GROUNDED_TOKEN: ${{ secrets.GROUNDED_TOKEN }}
|
||||||
run: python update_tracks.py
|
run: python update_tracks.py
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v6
|
uses: peter-evans/create-pull-request@v6
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user