Skip to content

Nightly Build

Nightly Build #196

Workflow file for this run

name: Nightly Build
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '14 0 * * *' # runs daily at 00:14
jobs:
nightly-detect:
runs-on: ubuntu-latest
outputs:
new-commits: ${{ steps.count-commits.outputs.count }}
steps:
- uses: actions/checkout@v4
with:
ref: 'community'
fetch-depth: 0 # Required to count the commits
- name: Get new commits
id: count-commits
run: |
count=$(git log --oneline --since '24 hours ago' | wc -l)
echo "Saw $count commits"
echo "count=$count" >> $GITHUB_OUTPUT
nightly-build:

Check failure on line 24 in .github/workflows/nightly-build.yml

View workflow run for this annotation

GitHub Actions / Nightly Build

Invalid workflow file

The workflow is not valid. .github/workflows/nightly-build.yml (Line: 24, Col: 3): Error calling workflow 'litui/DelugeFirmware/.github/workflows/build.yml@2e09148d0b59f9d4060ff8b98c74cc1bdb48fff5'. The workflow is requesting 'contents: write', but is only allowed 'contents: read'.
uses: ./.github/workflows/build.yml
needs: nightly-detect
if: needs.nightly-detect.outputs.new-commits > 0
with:
firmware-retention-days: 30
build-type: 'Release'
build-tag: 'nightly'
branch: 'community'
nightly-publish:
uses: ./.github/workflows/publish.yml
needs: nightly-build
with:
tag: 'nightly'
beta-detect:
runs-on: ubuntu-latest
outputs:
new-commits: ${{ steps.count-commits.outputs.count }}
steps:
- uses: actions/checkout@v4
with:
ref: 'release/1.1'
fetch-depth: 0 # Required to count the commits
- name: Get new commits
id: count-commits
run: |
count=$(git log --oneline --since '24 hours ago' | wc -l)
echo "Saw $count commits"
echo "count=$count" >> $GITHUB_OUTPUT
beta-build:
uses: ./.github/workflows/build.yml
needs: beta-detect
if: needs.beta-detect.outputs.new-commits > 0
with:
firmware-retention-days: 30
build-type: 'Release'
build-tag: 'beta'
branch: 'release/1.1'
beta-publish:
uses: ./.github/workflows/publish.yml
needs: beta-build
with:
tag: 'beta'
branch: 'release/1.1'