Skip to content

Commit

Permalink
workflow: remove commit changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
rabilrbl committed Aug 29, 2023
1 parent 503d3bd commit b7bdd69
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/release_on_tag_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,19 @@ jobs:
permissions:
contents: write
steps:
- name: Checkout code
-
name: Checkout code
uses: actions/checkout@master
with:
fetch-depth: 0
- name: Fetch tags
-
name: Fetch tags
id: fetch_latest_tag
run: |
echo "previous_tag=$(git describe --tags --abbrev=0 HEAD^1 | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')" >> $GITHUB_OUTPUT
echo "latest_tag=$(git describe --tags --abbrev=0 HEAD | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')" >> $GITHUB_OUTPUT
- name: Generate changelogs
id: changelogs
run: |
echo "commits<<EOF" >> $GITHUB_OUTPUT
git log --pretty=format:%s ${{ steps.fetch_latest_tag.outputs.previous_tag }}..${{ steps.fetch_latest_tag.outputs.latest_tag }} >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create Release
-
name: Create Release
id: create_release
uses: actions/create-release@v1
env:
Expand All @@ -36,8 +33,6 @@ jobs:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
${{ steps.changelogs.outputs.commits }}
**Full Changelog**: https://github.com/rabilrbl/jiotv_go/compare/${{ steps.fetch_latest_tag.outputs.previous_tag }}...${{ steps.fetch_latest_tag.outputs.latest_tag }}
draft: false
prerelease: false
Expand Down

0 comments on commit b7bdd69

Please sign in to comment.