-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add check for original senseBox MCU package (#50)
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |