From 5b27b6aef46578fa35c19ac020710139e1fb2828 Mon Sep 17 00:00:00 2001 From: NyakudyaA Date: Sat, 19 Oct 2024 10:08:45 +0200 Subject: [PATCH] fix publishing workflows --- .github/workflows/deploy-image.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-image.yaml b/.github/workflows/deploy-image.yaml index d1c59d78..cc3f5738 100644 --- a/.github/workflows/deploy-image.yaml +++ b/.github/workflows/deploy-image.yaml @@ -95,21 +95,27 @@ jobs: geoserverMajorVersion: - 2 geoserverMinorVersion: - - minor: 25 + - minor: 26 patch: 2 steps: + - name: Checkout code + id: git_checkout + uses: actions/checkout@v3 + with: + ref: 'develop' + - name: Get Current Date id: current_date run: echo "formatted=$(date -u +%Y.%m.%d)" >> $GITHUB_OUTPUT - name: Get Latest Commit Hash id: latest_commit_hash - run: echo "commit=$(git log -n 1 --pretty=format:%H)" >> $GITHUB_OUTPUT + run: echo "commit=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT - name: publish_release id: tag_releases run: | - gh release create v${{ matrix.geoserverMajorVersion }}.${{ matrix.geoserverMinorVersion.minor }}.${{ matrix.geoserverMinorVersion.patch }}--v${{ steps.current_date.outputs.formatted }}--${{ steps.latest_commit_hash.outputs.commit }} --generate-notes --target ${{ steps.latest_commit_hash.outputs.commit }} --repo $GITHUB_REPOSITORY + gh release create v${{ matrix.geoserverMajorVersion }}.${{ matrix.geoserverMinorVersion.minor }}.${{ matrix.geoserverMinorVersion.patch }}--v${{ steps.current_date.outputs.formatted }}--${{ steps.latest_commit_hash.outputs.commit }} --notes ${{ steps.latest_commit_hash.outputs.commit }} --target develop --repo $GITHUB_REPOSITORY env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}