From 758fc13c3d5a48be21d05eae5b5c92788bc2199e Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 15 Aug 2023 21:28:17 +0200 Subject: [PATCH] ci/cd - replace version string for testing release --- .github/workflows/container-build.yml | 2 +- .github/workflows/linux-build.yml | 2 +- .github/workflows/push-doc.yml | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/container-build.yml b/.github/workflows/container-build.yml index d6c66b1e8..e9c843f96 100644 --- a/.github/workflows/container-build.yml +++ b/.github/workflows/container-build.yml @@ -52,7 +52,7 @@ jobs: uses: actions/checkout@v3 - name: Replace VERSION if: inputs.RELEASE == 'testing' - run: echo -n testing > VERSION && echo -n testing > src/VERSION + run: ./misc/update-version.sh testing - name: Setup SSH for ARM node if: inputs.CACHE_SUFFIX == 'arm' run: | diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index a64d20eaf..ef3feb41c 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -44,7 +44,7 @@ jobs: uses: actions/checkout@v3 - name: Replace VERSION if: inputs.RELEASE == 'testing' - run: echo -n testing > VERSION && echo -n testing > src/VERSION + run: ./misc/update-version.sh testing - name: Extract arch run : | echo "ARCH=${{ env.PLATFORMS }}" | sed 's/linux//g' | sed 's@/@@g' >> "$GITHUB_ENV" diff --git a/.github/workflows/push-doc.yml b/.github/workflows/push-doc.yml index c5802149c..360b37881 100644 --- a/.github/workflows/push-doc.yml +++ b/.github/workflows/push-doc.yml @@ -22,6 +22,9 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.BUNKERBOT_TOKEN }} + - name: Replace VERSION + if: inputs.VERSION == 'testing' + run: ./misc/update-version.sh testing - name: Setup git user run: | git config --global user.name "BunkerBot"