-
Notifications
You must be signed in to change notification settings - Fork 49
40 lines (35 loc) · 1.36 KB
/
daily-builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Daily builds
on:
schedule:
- cron: '00 18 * * *'
workflow_dispatch:
jobs:
check_for_commits:
runs-on: [self-hosted, linux, jammy, large]
name: Check for commits
outputs:
new_commit_count: ${{ steps.commit_check.outputs.new_commit_count }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check for commits
id: commit_check
run: |
commit_count=$(git log --since="24 hours ago" --oneline -- checkbox-ng checkbox-support providers checkbox-core-snap checkbox-snap | wc -l)
echo "new_commit_count=$commit_count" | tee $GITHUB_OUTPUT
checkbox-core-snap-daily:
needs: check_for_commits
if: ${{ needs.check_for_commits.outputs.new_commit_count > 0 || github.event_name == 'workflow_dispatch' }}
uses: ./.github/workflows/checkbox-core-snap-daily-builds.yml
secrets: inherit
checkbox-snap-daily:
needs: check_for_commits
if: ${{ needs.check_for_commits.outputs.new_commit_count > 0 || github.event_name == 'workflow_dispatch' }}
uses: ./.github/workflows/checkbox-snap-daily-builds.yml
secrets: inherit
checkbox-deb-daily:
needs: check_for_commits
if: ${{ needs.check_for_commits.outputs.new_commit_count > 0 || github.event_name == 'workflow_dispatch' }}
uses: ./.github/workflows/deb-daily-builds.yml
secrets: inherit