Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[checkbox-ce-oem] checkbox-ce-oem change to daily build (Infra) #1182

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: checkbox-ce-oem snap edge build
name: checkbox-ce-oem snap daily build

on:
push:
branches:
- main
paths:
- 'contrib/checkbox-ce-oem/**'
workflow_dispatch:
workflow_call:

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/daily-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# 3. selecting the date/time they started at (format: %Y-%m-%dT%H:%M:%sZ)
# 4. removing the Z postfix from the date to make it usable by git directly
export LAST_PASS_DAILY_BUILD=`gh api repos/canonical/checkbox/actions/runs --paginate --jq '.workflow_runs[] | select(.path == ".github/workflows/daily-builds.yml") | select(.conclusion == "success") | .run_started_at | .[:-1]' | head -1`
commit_count=$(git log --since="$LAST_PASS_DAILY_BUILD" --oneline -- checkbox-ng checkbox-support providers checkbox-core-snap checkbox-snap | wc -l)
commit_count=$(git log --since="$LAST_PASS_DAILY_BUILD" --oneline -- checkbox-ng checkbox-support providers checkbox-core-snap checkbox-snap contrib/checkbox-ce-oem | wc -l)
echo "new_commit_count=$commit_count" | tee $GITHUB_OUTPUT

checkbox-core-snap-daily:
Expand All @@ -41,6 +41,12 @@ jobs:
uses: ./.github/workflows/checkbox-snap-daily-builds.yml
secrets: inherit

checkbox-ce-oem-snap-daily:
needs: check_for_commits
if: ${{ needs.check_for_commits.outputs.new_commit_count > 0 || github.event_name == 'workflow_dispatch' }}
LiaoU3 marked this conversation as resolved.
Show resolved Hide resolved
uses: ./.github/workflows/checkbox-ce-oem-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' }}
Expand Down
Loading