File tree Expand file tree Collapse file tree 3 files changed +22
-15
lines changed Expand file tree Collapse file tree 3 files changed +22
-15
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ jobs:
1313 steps :
1414 - name : 📤 Checkout the repository
1515 uses : actions/checkout@main
16- - name : 📆 Set version number
17- uses : net-daemon/netdaemon/.github/workflows/common/set_netdaemon_version.yml
18- with :
19- version : dev
16+ - name : 📆 Set version in code and docker files
17+ run : |
18+ echo setting source version: dev
19+ sed -i '/ private const string Version = /c\ private const string Version = "dev";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
20+ sed -i '/ io.hass.version=/c\ io.hass.version="dev"' ${{github.workspace}}/Dockerfile.AddOn
2021 - name : 📎 Set up QEMU
2122 uses : docker/setup-qemu-action@v1
2223 - name : 🔧 Set up Docker Buildx
5859 uses : actions/checkout@main
5960 - name : 📆 Set version number
6061 run : |
61- sed -i '/ private const string Version = /c\ private const string Version = "dev";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
62+ echo setting source version: dev
63+ sed -i '/ private const string Version = /c\ private const string Version = "dev";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
64+ sed -i '/ io.hass.version=/c\ io.hass.version="dev"' ${{github.workspace}}/Dockerfile.AddOn
6265 - name : 📎 Set up QEMU
6366 uses : docker/setup-qemu-action@v1
6467 - name : 🔧 Set up Docker Buildx
Original file line number Diff line number Diff line change 1717 - name : 📤 Checkout the repository
1818 uses : actions/checkout@main
1919 - name : 📆 Set version number
20- uses : net-daemon/netdaemon/.github/workflows/common/set_netdaemon_version.yml
21- with :
22- version : feature-${{ github.event.inputs.tag }}
20+ run : |
21+ echo setting source version: feature-${{ github.event.inputs.tag }}
22+ sed -i '/ private const string Version = /c\ private const string Version = "feature-${{ github.event.inputs.tag }}";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
23+ sed -i '/ io.hass.version=/c\ io.hass.version="feature-${{ github.event.inputs.tag }}"' ${{github.workspace}}/Dockerfile.AddOn
2324 - name : 📎 Set up QEMU
2425 uses : docker/setup-qemu-action@v1
2526 - name : 🔧 Set up Docker Buildx
5859 uses : actions/checkout@main
5960 - name : 📆 Set version number
6061 run : |
61- sed -i '/ private const string Version = /c\ private const string Version = "dev";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
62- sed -i '/ io.hass.version=/c\ io.hass.version="dev" \\' ${{github.workspace}}/Dockerfile.AddOn
62+ echo setting source version: feature-${{ github.event.inputs.tag }}
63+ sed -i '/ private const string Version = /c\ private const string Version = "feature-${{ github.event.inputs.tag }}";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
64+ sed -i '/ io.hass.version=/c\ io.hass.version="feature-${{ github.event.inputs.tag }}"' ${{github.workspace}}/Dockerfile.AddOn
6365 - name : 📎 Set up QEMU
6466 uses : docker/setup-qemu-action@v1
6567 - name : 🔧 Set up Docker Buildx
Original file line number Diff line number Diff line change 2121 echo Current version: $latest
2222 echo "::set-output name=version::$latest"
2323 - name : 📆 Set version number
24- uses : net-daemon/netdaemon/.github/workflows/common/set_netdaemon_version.yml
25- with :
26- version : ${{ steps.version.outputs.version }}
24+ run : |
25+ echo setting source version: ${{ steps.version.outputs.version }}
26+ sed -i '/ private const string Version = /c\ private const string Version = "${{ steps.version.outputs.version }}";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
27+ sed -i '/ io.hass.version=/c\ io.hass.version="${{ steps.version.outputs.version }}"' ${{github.workspace}}/Dockerfile.AddOn
2728 - name : 📎 Set up QEMU
2829 uses : docker/setup-qemu-action@v1
2930 - name : 🔧 Set up Docker Buildx
7778
7879 - name : 📆 Set version number
7980 run : |
80- sed -i '/ private const string Version = /c\ private const string Version = "${{ steps.version.outputs.version }}";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
81- sed -i '/ io.hass.version=/c\ io.hass.version="${{ steps.version.outputs.version }}" \\' ${{github.workspace}}/Dockerfile.AddOn
81+ echo setting source version: ${{ steps.version.outputs.version }}
82+ sed -i '/ private const string Version = /c\ private const string Version = "${{ steps.version.outputs.version }}";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
83+ sed -i '/ io.hass.version=/c\ io.hass.version="${{ steps.version.outputs.version }}"' ${{github.workspace}}/Dockerfile.AddOn
8284
8385 - name : 📎 Set up QEMU
8486 uses : docker/setup-qemu-action@v1
You can’t perform that action at this time.
0 commit comments