Skip to content

Commit

Permalink
fix the version tags
Browse files Browse the repository at this point in the history
  • Loading branch information
helto4real committed Aug 15, 2020
1 parent 9f24c0c commit 6d6ea0d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@main
- name: "Set version number"
run: |
sed -i '/ const string _version = /c\ const string _version = "main build";' ${{github.workspace}}/src/DaemonRunner/DaemonRunner/Service/RunnerService.cs
sed -i '/ private const string Version = /c\ private const string Version = "main";' ${{github.workspace}}/src/DaemonRunner/DaemonRunner/Service/RunnerService.cs
- name: Login to docker hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_TOKEN }}
- name: Set up Docker Buildx
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push_docker_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@main
- name: "Set version number"
run: |
sed -i '/ const string _version = /c\ const string _version = "dev build";' ${{github.workspace}}/src/DaemonRunner/DaemonRunner/Service/RunnerService.cs
sed -i '/ private const string Version = /c\ private const string Version = "dev build";' ${{github.workspace}}/src/DaemonRunner/DaemonRunner/Service/RunnerService.cs
- name: Login to docker hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_TOKEN }}
- name: Set up Docker Buildx
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tags_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
name: Set tag envronment variable
- name: "Set version number"
run: |
sed -i '/ const string _version = /c\ const string _version = "${GIT_TAG_NAME}";' ${{github.workspace}}/src/DaemonRunner/DaemonRunner/Service/RunnerService.cs
sed -i '/ private const string Version = /c\ private const string Version = "${GIT_TAG_NAME}";' ${{github.workspace}}/src/DaemonRunner/DaemonRunner/Service/RunnerService.cs
- name: Set up Docker Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tags_nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Set tag envronment variable
- name: "Set version number"
run: |
sed -i '/ const string _version = /c\ const string _version = "${GIT_TAG_NAME}";' ${{github.workspace}}/src/DaemonRunner/DaemonRunner/Service/RunnerService.cs
sed -i '/ private const string Version = /c\ private const string Version = "${GIT_TAG_NAME}";' ${{github.workspace}}/src/DaemonRunner/DaemonRunner/Service/RunnerService.cs
- name: pack DaemonRunner
run: dotnet pack src/DaemonRunner/DaemonRunner/DaemonRunner.csproj --configuration Release -p:PackageVersion=${GIT_TAG_NAME}-beta
- name: pack App
Expand Down
2 changes: 1 addition & 1 deletion src/DaemonRunner/DaemonRunner/Service/RunnerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class RunnerService : BackgroundService
/// The interval used when disconnected
/// </summary>
private const int ReconnectInterval = 10000;
private const string Version = "dev";
private const string Version = "custom compiled";

private readonly HomeAssistantSettings _homeAssistantSettings;
private readonly NetDaemonSettings _netDaemonSettings;
Expand Down

0 comments on commit 6d6ea0d

Please sign in to comment.