From df9836f59e287c71c3fa14544de7c6e5e59e36d6 Mon Sep 17 00:00:00 2001 From: Wissididom <30803034+Wissididom@users.noreply.github.com> Date: Mon, 13 Feb 2023 20:11:48 +0100 Subject: [PATCH] Automatically update `nightly-build` tag every nightly release (#4374) This is done by CI force pushing the `nightly-build` tag - the `nightly-build` tag should never be relied on other than for GitHub releases. --- .CI/CreateUbuntuDeb.sh | 2 +- .github/workflows/build.yml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.CI/CreateUbuntuDeb.sh b/.CI/CreateUbuntuDeb.sh index e8929783..e13af828 100755 --- a/.CI/CreateUbuntuDeb.sh +++ b/.CI/CreateUbuntuDeb.sh @@ -42,7 +42,7 @@ fi chatterino_version=$(git describe 2>/dev/null | cut -c 2-) || true if [ -z "$chatterino_version" ]; then - # Fall back to this in case the build happened outside of a git repo + # Fall back to this in case the build happened outside of a git repo or a repo without tags chatterino_version="0.0.0-dev" fi diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 167b2307..8e2c143d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -311,6 +311,9 @@ jobs: if: (github.event_name == 'push' && github.ref == 'refs/heads/master') steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # allows for tags access - uses: actions/download-artifact@v3 with: name: chatterino-windows-x86-64-5.15.2.zip @@ -352,3 +355,9 @@ jobs: prerelease: true name: Nightly Release tag: nightly-build + + - name: Update nightly-build tag + run: | + git tag -f nightly-build + git push -f origin nightly-build + shell: bash