diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2f6921444..a45439fc7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -77,7 +77,7 @@ jobs: PUBLISH_BUILD: ${{ steps.check_publish.outputs.publish_build }} run: | version_dev="dev$(date --utc +'%Y%m%d')" - if [ "${{ env.PUBLISH_BUILD }}" != "true" ]; then + if [ "${{ env.PUBLISH_BUILD }}" != "true" ] || [ "${{ github.ref }}" != "refs/heads/dev" ]; then version_dev="dev$(date +%s)" fi echo "Development version \"${version_dev}\"" @@ -432,7 +432,7 @@ jobs: bump_version: name: Bump ${{ needs.prepare.outputs.channel }} channel version - if: ${{ github.repository == 'home-assistant/operating-system' && needs.prepare.outputs.publish_build == 'true' }} + if: ${{ github.repository == 'home-assistant/operating-system' && needs.prepare.outputs.publish_build == 'true' && (needs.prepare.outputs.channel != 'dev' || github.ref == 'refs/heads/dev') }} environment: ${{ needs.prepare.outputs.channel }} needs: [ build, prepare ] runs-on: ubuntu-22.04