Set build version during nightly build

This commit is contained in:
Will Tatam 2025-01-10 16:49:15 +00:00
parent bb0c0af189
commit ec7a7f4c25

View File

@ -8,7 +8,15 @@ on:
workflow_dispatch:
jobs:
prep:
runs-on: ubuntu-latest
steps:
- name: Set Version
run: |
VERSION=`date +%y%m%d0`
sed -i -r -e "s/#define VERSION .+/#define VERSION $VERSION/" wled00/wled.h
wled_build:
needs: prep
uses: ./.github/workflows/build.yml
nightly:
name: Deploy nightly