Skip to content

Commit

Permalink
Switch to getting the latest release instead of the latest tag (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsee authored Jul 31, 2020
1 parent 94c9333 commit 08ea9a9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08ea9a9

Please sign in to comment.