From 2c8380d24025d0b0d74310ea08f26c48c4b45e42 Mon Sep 17 00:00:00 2001 From: Dennis Kuijs Date: Tue, 21 Jul 2026 17:14:09 +0200 Subject: [PATCH 1/2] fix --- .github/workflows/ci_cd.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index db282a2..32f8ff8 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -39,6 +39,21 @@ jobs: runs-on: ubuntu-latest steps: + - name: Update OpenRemote version in gradle/libs.versions.toml + if: ${{ github.event_name != 'pull_request' && github.event_name == 'workflow_dispatch' }} + run: | + CURRENT=$(grep '^openremote = ' gradle/libs.versions.toml | sed -E 's/^openremote = "([^\"]+)".*/\1/' | head -n 1) + if [ "$CURRENT" != "$VERSION" ]; then + sed -i "s/^openremote = .*/openremote = \"$VERSION\"/" gradle/libs.versions.toml + git add gradle/libs.versions.toml + git -c user.name="github-actions[bot]" -c user.email="github-actions[bot]@users.noreply.github.com" commit -m "Update OpenRemote version to $VERSION [skip ci]" + git push + else + echo "Version unchanged, skipping commit." + fi + env: + VERSION: ${{ inputs.version }} + - name: Checkout uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 @@ -66,21 +81,6 @@ jobs: echo "value=true" >> $GITHUB_OUTPUT fi - - name: Update OpenRemote version in gradle/libs.versions.toml - if: ${{ github.event_name != 'pull_request' && github.event_name == 'workflow_dispatch' }} - run: | - CURRENT=$(grep '^openremote = ' gradle/libs.versions.toml | sed -E 's/^openremote = "([^\"]+)".*/\1/' | head -n 1) - if [ "$CURRENT" != "$VERSION" ]; then - sed -i "s/^openremote = .*/openremote = \"$VERSION\"/" gradle/libs.versions.toml - git add gradle/libs.versions.toml - git -c user.name="github-actions[bot]" -c user.email="github-actions[bot]@users.noreply.github.com" commit -m "Update OpenRemote version to $VERSION [skip ci]" - git push - else - echo "Version unchanged, skipping commit." - fi - env: - VERSION: ${{ inputs.version }} - - name: Run installDist timeout-minutes: 20 run: ./gradlew installDist From 98e0233c77aff42623ac9a0f5308e6c26423d128 Mon Sep 17 00:00:00 2001 From: Dennis Kuijs Date: Tue, 21 Jul 2026 17:28:24 +0200 Subject: [PATCH 2/2] wip --- .github/workflows/ci_cd.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 32f8ff8..3aadcd1 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -39,21 +39,6 @@ jobs: runs-on: ubuntu-latest steps: - - name: Update OpenRemote version in gradle/libs.versions.toml - if: ${{ github.event_name != 'pull_request' && github.event_name == 'workflow_dispatch' }} - run: | - CURRENT=$(grep '^openremote = ' gradle/libs.versions.toml | sed -E 's/^openremote = "([^\"]+)".*/\1/' | head -n 1) - if [ "$CURRENT" != "$VERSION" ]; then - sed -i "s/^openremote = .*/openremote = \"$VERSION\"/" gradle/libs.versions.toml - git add gradle/libs.versions.toml - git -c user.name="github-actions[bot]" -c user.email="github-actions[bot]@users.noreply.github.com" commit -m "Update OpenRemote version to $VERSION [skip ci]" - git push - else - echo "Version unchanged, skipping commit." - fi - env: - VERSION: ${{ inputs.version }} - - name: Checkout uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0