Set up release-date env variable creation tags for daily releases
This commit is contained in:
parent
648f2bfe62
commit
2d2137bd9d
|
@ -2,7 +2,7 @@ name: Create Board Firmware
|
|||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '45 15 * * *' # build fresh every 3:45 PM UTC
|
||||
- cron: '35 12 * * *' # build fresh every 3:45 PM UTC
|
||||
push:
|
||||
# pull_request:
|
||||
workflow_dispatch:
|
||||
|
@ -18,6 +18,9 @@ jobs:
|
|||
- name: Set run variables
|
||||
id: set-variables
|
||||
run: |
|
||||
if [ "${{github.event_name}}" = "schedule" ]; then
|
||||
echo "release_date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
|
||||
fi
|
||||
if [ "${{github.event_name}}" == "push" -o "${{github.event_name}}" == "schedule" -o "${{github.event_name}}" == "workflow_dispatch" ] && [ "${{github.ref}}" == "refs/heads/master" -o "${{github.ref}}" == "refs/heads/main" ]; then
|
||||
echo 'upload=bundles' >> $GITHUB_OUTPUT
|
||||
echo 'push=true' >> $GITHUB_OUTPUT
|
||||
|
|
Loading…
Reference in New Issue