mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-29 19:44:29 +01:00
Add github actions
This commit is contained in:
23
.github/workflows/generate-readme.yml
vendored
Normal file
23
.github/workflows/generate-readme.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Generate README.md
|
||||
on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
restorePassword:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- shell: bash
|
||||
env:
|
||||
CONTACT_EMAIL: ${{ secrets.CONTACT_EMAIL }}
|
||||
run: |
|
||||
git config user.email $CONTACT_EMAIL
|
||||
git config user.name "Github Action"
|
||||
git describe --tags
|
||||
VERSION=`git describe --tags --abbrev=0`
|
||||
VERSION=`./moustache/split.sh $VERSION`
|
||||
rm -f ./README.md
|
||||
VERSION=$VERSION ./moustache/mo ./moustache/README.mo > ./README.md
|
||||
git add .
|
||||
git diff-index --quiet HEAD || git commit -m "Update readme to version=$VERSION" && git push
|
||||
Reference in New Issue
Block a user