From 761129e3739efacb7b8763eaa0fa8a109e935447 Mon Sep 17 00:00:00 2001 From: jvmncs <7891333+jvmncs@users.noreply.github.com> Date: Mon, 16 Sep 2024 11:09:31 -0400 Subject: [PATCH] Update nightly tag every night (#17879) Previous `release_nightly` workflow would trigger every night or on push to the `nightly` tag, which means `nightly` tag wasn't always in sync with the nightly we bundle. This change syncs the tag up with the bundled releases. Release Notes: - N/A --- .github/workflows/bump_nightly_tag.yml | 23 +++++++++++++++++++++++ .github/workflows/release_nightly.yml | 3 --- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/bump_nightly_tag.yml diff --git a/.github/workflows/bump_nightly_tag.yml b/.github/workflows/bump_nightly_tag.yml new file mode 100644 index 0000000000..54a3970a1c --- /dev/null +++ b/.github/workflows/bump_nightly_tag.yml @@ -0,0 +1,23 @@ +name: Update Nightly Tag + +on: + schedule: + # Fire every day at 7:00am UTC (Roughly before EU workday and after US workday) + - cron: "0 7 * * *" + +jobs: + update-nightly-tag: + if: github.repository_owner == 'zed-industries' + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Update nightly tag + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git tag -f nightly + git push origin nightly --force diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml index e1fc5a39f2..8371840984 100644 --- a/.github/workflows/release_nightly.yml +++ b/.github/workflows/release_nightly.yml @@ -1,9 +1,6 @@ name: Release Nightly on: - schedule: - # Fire every day at 7:00am UTC (Roughly before EU workday and after US workday) - - cron: "0 7 * * *" push: tags: - "nightly"