mirror of
https://github.com/nixietab/picodulce.git
synced 2025-04-09 18:08:57 +01:00
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Version Change Action
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- canary
|
|
paths:
|
|
- version.json # Trigger on changes to version.json
|
|
|
|
jobs:
|
|
run-on-version-change:
|
|
runs-on: windows-latest # Use Windows 10 runner
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.x' # Specify the Python version you need
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
# You can add your project dependencies here
|
|
# pip install -r requirements.txt # Uncomment if you have a requirements file
|
|
|
|
- name: Create actions-temp folder
|
|
run: |
|
|
mkdir actions-temp # Create the folder called actions-temp
|
|
|
|
- name: Download picoBuild.py script
|
|
run: |
|
|
curl -L -o actions-temp/picoBuild.py https://raw.githubusercontent.com/nixietab/picodulce-build-script/refs/heads/main/picoBuild.py
|
|
|
|
- name: Run picoBuild.py script
|
|
run: |
|
|
python actions-temp/picoBuild.py
|