-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 996 Bytes
/
fetch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Fetch Firmware Payload
on:
workflow_dispatch:
schedule:
- cron: '0 0 */14 * *' # 2 weeks
permissions:
contents: write
pull-requests: write
jobs:
fetch:
runs-on: ubuntu-latest
env:
BAMBU_ACCOUNT: ${{ secrets.BAMBU_ACCOUNT }}
BAMBU_PASSWORD: ${{ secrets.BAMBU_PASSWORD }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Dependencies
run: pip install requests
- name: Run Script
run: python scripts/fetch_firmware.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
add-paths: 'assets/*.json'
commit-message: 'Firmware payload updated'
branch: fetch-firmware-payload
title: 'Firmware payload updated'
#reviewers: lunDreame34