-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e1da98
commit ecb84ae
Showing
1 changed file
with
8 additions
and
5 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 |
---|---|---|
|
@@ -16,11 +16,14 @@ jobs: | |
with: | ||
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | ||
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | ||
- name: 'Get tag' | ||
id: previoustag | ||
uses: "WyriHaximus/github-action-get-previous-tag@v1" | ||
|
||
- name: Read value from Properties-file | ||
id: read_property | ||
uses: christian-draeger/[email protected] | ||
with: | ||
fallback: 1.0.0 # Optional fallback tag to use when no tag can be found | ||
path: 'library.properties' | ||
properties: 'version' | ||
|
||
- name: Overwrite version.h | ||
uses: "DamianReeves/write-file-action@master" | ||
with: | ||
|
@@ -29,7 +32,7 @@ jobs: | |
contents: | | ||
#include "AsyncFsWebServer.h" | ||
const char* AsyncFsWebServer::getVersion() { | ||
return "${{ steps.previoustag.outputs.tag }}"; | ||
return "${{ steps.read_property.outputs.version }}"; | ||
} | ||
- name: Commit & Push | ||
uses: Andro999b/[email protected] | ||
|