Set up release-date env variable creation tags for daily releases

This commit is contained in:
kifir23917 2024-06-26 15:33:03 +03:00 committed by GitHub
parent 648f2bfe62
commit 2d2137bd9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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