Skip to content

Commit

Permalink
Add check for original senseBox MCU package (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpfeil authored Aug 20, 2021
1 parent b034ddb commit 5c0e437
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMAPLTE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: New commits in Watterotts senseBox MCU repository
assignees: mariopesch
labels: info
---
34 changes: 34 additions & 0 deletions .github/workflows/mcu-core.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check Watterott senseBox MCU Core for updates

on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *' # Check every day

jobs:
check-for-updates:
name: Check for new commits
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
with:
repository: 'watterott/senseBox-MCU'
ref: 'master'

- name: Check for new commits
id: check_commits
run: |
echo "Checking git log"
commits=false
git shortlog -s --after="yesterday" --before="today" > commits.txt
if [[ $(wc -l <commits.txt) -ge 1 ]]
then
echo "[set-output name=commits;true]"
fi
echo $commits
- uses: JasonEtco/create-an-issue@v2
if: ${{ steps.check_commits.outputs.commits }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5c0e437

Please sign in to comment.