Skip to content
Open
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
35 changes: 35 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on: [push]

jobs:
update:
env:
CONTROLS_FILENAME: controls_uba.txt
runs-on: ubuntu-latest
steps:
- name: Extract branch name
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Checkout Repostory
uses: actions/checkout@master
- name: update controls files
uses: fhem/fhem-controls-actions@master
with:
filename: controls_uba.txt
- name: update CHANGED
run: |
LOG=$(date +"%Y-%m-%d")
LOG+=" - $(git log -1 --pretty=%B)"
echo "$LOG" | cat - CHANGED > temp && mv temp CHANGED
- name: git commit back
run: |
git config --global user.email "action@github.com"
git config --local user.name "GitHub Action"
git add CHANGED controls_uba.txt || true
git log -1 --name-only --pretty=format: | grep -Eo '[0-9]{2}_.*.pm$' && git commit CHANGED controls_uba.txt -m "Automatic updated controls and CHANGED" || true
- name: git push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ steps.extract_branch.outputs.branch }}
1 change: 1 addition & 0 deletions CHANGED
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
2021-03-28 - Added new build system
Last uba updates (02.05.2020)

e7f9a2b 02.05.2020 15:19 fixed controls
Expand Down
70 changes: 0 additions & 70 deletions build.sh

This file was deleted.

3 changes: 1 addition & 2 deletions controls_uba.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
DEL ./FHEM/60_uba.pm
UPD 2020-04-14_01:25:59 19623 FHEM/60_uba.pm
UPD 2021-03-29_00:53:11 19623 FHEM/60_uba.pm