From fa3331c455cbf2b18c4f2d88b2d6e2b9d3e7ddc8 Mon Sep 17 00:00:00 2001 From: Pat Date: Tue, 12 Mar 2024 14:41:27 +0000 Subject: [PATCH] workflows: make 3.0 releases latest (#8415) Signed-off-by: Patrick Stephens Signed-off-by: Pat --- .github/workflows/staging-release.yaml | 37 +++++++++++++++++++++----- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/.github/workflows/staging-release.yaml b/.github/workflows/staging-release.yaml index b5a799a3e62..1805e873bb4 100644 --- a/.github/workflows/staging-release.yaml +++ b/.github/workflows/staging-release.yaml @@ -518,8 +518,8 @@ jobs: TAG: ${{ steps.get-tag.outputs.tag }} staging-release-images-latest-tags: - # Only update latest tags for 2.2 releases - if: startsWith(github.event.inputs.version, '2.2') + # Only update latest tags for 3.0 releases + if: startsWith(github.event.inputs.version, '3.0') name: Release latest Linux container images runs-on: ubuntu-latest needs: @@ -805,8 +805,8 @@ jobs: tag_name: v${{ inputs.version }} target_commitish: '2.1' - - name: Release 2.2 and latest - uses: softprops/action-gh-release@v2 + - name: Release 2.2 - not latest + uses: softprops/action-gh-release@v1 if: startsWith(inputs.version, '2.2') with: body: "https://fluentbit.io/announcements/v${{ inputs.version }}/" @@ -814,6 +814,17 @@ jobs: generate_release_notes: true name: "Fluent Bit ${{ inputs.version }}" tag_name: v${{ inputs.version }} + target_commitish: '2.2' + + - name: Release 3.0 and latest + uses: softprops/action-gh-release@v1 + if: startsWith(inputs.version, '3.0') + with: + body: "https://fluentbit.io/announcements/v${{ inputs.version }}/" + draft: false + generate_release_notes: true + name: "Fluent Bit ${{ inputs.version }}" + tag_name: v${{ inputs.version }} staging-release-windows-checksums: name: Get Windows checksums for new release @@ -891,9 +902,17 @@ jobs: ref: 2.1 token: ${{ secrets.GH_PA_TOKEN }} - - name: Release 2.2 and latest + - name: Release 2.2 - not latest if: startsWith(inputs.version, '2.2') uses: actions/checkout@v4 + with: + repository: fluent/fluent-bit-docs + ref: 2.2 + token: ${{ secrets.GH_PA_TOKEN }} + + - name: Release 3.0 and latest + if: startsWith(inputs.version, '3.0') + uses: actions/checkout@v4 with: repository: fluent/fluent-bit-docs token: ${{ secrets.GH_PA_TOKEN }} @@ -964,9 +983,15 @@ jobs: with: ref: 2.1 - - name: Release 2.2 and latest + - name: Release 2.2 if: startsWith(inputs.version, '2.2') uses: actions/checkout@v4 + with: + ref: 2.2 + + - name: Release 3.0 and latest + if: startsWith(inputs.version, '3.0') + uses: actions/checkout@v4 # Get the new version to use - name: 'Get next minor version'