Skip to content

Commit

Permalink
ci: run bug snapshot daily
Browse files Browse the repository at this point in the history
Store bug stats on a daily basis and keep original workflow behavior
triggered manually in place. Daily snapshots will be stored under daily/
folder and separate from manual snapshots.

The daily snapshots will be used for more granular analytics of github
issues over time.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif authored and carlescufi committed Aug 10, 2022
1 parent 0aa5a97 commit 4e854f7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/bug_snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ name: Bug Snapshot
on:
workflow_dispatch:
branches: [ main ]
schedule:
# Run daily at 14:05
- cron: '5 14 * * *'

jobs:
make_bugs_pickle:
Expand Down Expand Up @@ -48,7 +51,11 @@ jobs:
run: |
PUBLISH_BUCKET="builds.zephyrproject.org"
PUBLISH_DOMAIN="builds.zephyrproject.io"
PUBLISH_ROOT="${{ github.event.repository.name }}/bug-snapshot"
if [ "${{github.event_name}}" = "schedule" ]; then
PUBLISH_ROOT="${{ github.event.repository.name }}/bug-snapshot/daily"
else
PUBLISH_ROOT="${{ github.event.repository.name }}/bug-snapshot"
fi
PUBLISH_UPLOAD_URI="s3://${PUBLISH_BUCKET}/${PUBLISH_ROOT}/${BUGS_PICKLE_FILENAME}"
PUBLISH_DOWNLOAD_URI="https://${PUBLISH_DOMAIN}/${PUBLISH_ROOT}/${BUGS_PICKLE_FILENAME}"
Expand Down

0 comments on commit 4e854f7

Please sign in to comment.