From e5f23984f18206ab1b0145d87c219fe714897c65 Mon Sep 17 00:00:00 2001 From: Shalom Ben Zvi Kazaz Date: Sun, 24 Nov 2024 15:37:02 +0200 Subject: [PATCH] move-pin-release-to-first-step --- .github/workflows/release.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63ff8cb..d4e4498 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,21 @@ jobs: runs-on: ubuntu-latest steps: + + # we pin v1.0.27 as 'latest' tag. + # in github UI the release may be marked as latest. So do it as first step of the workflow so there is less time + # that this release is marked as latest + # this is a workaround for: + # in November 2024 we changed the version of the agent that the plugin downloads from latest to a specific version. + # for that we needed to pin v1.0.27 as latest so that older plugin version will still use this release. + # todo: this step can be removed after all users upgraded the plugin, probably around March 25. + - name: pin v1.0.27 as latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release edit v1.0.27 --latest + + - name: GIT Checkout uses: actions/checkout@v4 @@ -42,14 +57,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh release upload ${{ github.event.release.tag_name }} ./build/libs/digma-agent*.jar - # we pin v1.0.27 as latest tag. this is a workaround . - # in November 2024 we changed the version of the agent that the plugin downloads from latest to a specific version. - # for that we needed to pin v1.0.27 as latest so that older plugin version will still use this release. - - name: pin v1.0.27 as latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh release edit v1.0.27 --latest