From 08ea9a95b2301efd868bf86818f38784e72c36b5 Mon Sep 17 00:00:00 2001 From: Jacob See Date: Fri, 31 Jul 2020 11:54:58 -0700 Subject: [PATCH] Switch to getting the latest release instead of the latest tag (#106) --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f8b6244..0744d4f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -122,13 +122,17 @@ jobs: with: branch: "${{ steps.env_info.outputs.issuetitle }}" commit_message: "Merging changes requested from ${{ steps.env_info.outputs.comment_url }}" - - name: 'Get Previous tag' - id: previoustag - uses: actions-ecosystem/action-get-latest-tag@v1 + # - name: 'Get Previous tag' + # id: previoustag + # uses: actions-ecosystem/action-get-latest-tag@v1 + - id: previous_release + uses: pozetroninc/github-action-get-latest-release@master + with: + repository: rht-labs/lodestar-deployment - name: Generate Release Body id: release_body run: | - echo ::set-output name=text::$(git log ${{ steps.previoustag.outputs.tag }}..HEAD --pretty=format:"- %h %s by %an" --no-merges) + echo ::set-output name=text::$(git log ${{ steps.previous_release.outputs.release }}..HEAD --pretty=format:"- %h %s by %an" --no-merges) - name: Create Release id: create_release uses: actions/create-release@v1