Skip to content

Commit

Permalink
docs: Show as badge in readme original openDTU release number
Browse files Browse the repository at this point in the history
Badge shows the openDTU release which is used as core to build openDTU-onBattery's release
  • Loading branch information
helgeerbe committed May 10, 2023
1 parent 40a6519 commit 556f3e0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,23 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Get tags
run: git fetch --force --tags origin

- name: Get openDTU core release
run: |
echo "OPEN_DTU_CORE_RELEASE=$(git show-ref | grep 'refs/tags/v' | tail -1 | sed 's#.*/##')" >> $GITHUB_ENV
- name: Create openDTU-core-release-Badge
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: 68b47cc8c8994d04ab3a4fa9d8aee5e6
filename: openDTUcoreRelease.json
label: based on original OpenDTU
message: ${{ env.OPEN_DTU_CORE_RELEASE }}
color: lightblue

- name: Build Changelog
id: github_release
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a fork from the Hoymiles project OpenDTU.

![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/helgeerbe/OpenDTU?label=based%20on%20original%20OpenDTU)
![GitHub tag (latest SemVer)](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/helgeerbe/68b47cc8c8994d04ab3a4fa9d8aee5e6/raw/openDTUcoreRelease.json)

<mark>This README is kept similar to the openDTU project for process reasons.</mark>

Expand Down
2 changes: 1 addition & 1 deletion README_onBattery.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a fork from the Hoymiles project [OpenDTU](https://github.com/tbnobody/OpenDTU). This project is still under development but is being used on a day to day basis as well.

![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/helgeerbe/OpenDTU?label=based%20on%20original%20OpenDTU)
![GitHub tag (latest SemVer)](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/helgeerbe/68b47cc8c8994d04ab3a4fa9d8aee5e6/raw/openDTUcoreRelease.json)

## Features

Expand Down

0 comments on commit 556f3e0

Please sign in to comment.