Skip to content

Commit

Permalink
Merge pull request #48 from aau-network-security/develop
Browse files Browse the repository at this point in the history
add release wf
  • Loading branch information
mrtrkmn authored Mar 24, 2021
2 parents 08b4370 + 01e8aa9 commit 60af8d9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/dockerpush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,26 @@ jobs:
password: ${{ secrets.DOCKER_H_PASSWORD }}
tag_with_ref: true
tag_with_sha: true


- name: prev_tag
run: echo "::set-output name=prevtag::$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)"

- name: current_tag
run: echo "::set-output name=currenttag::$(git describe --tags --abbrev=0)"

- name: Create Change Log
run: |
git --no-pager log --pretty=oneline ${{ steps.prev_tag.outputs.prevtag }}...${{ steps.current_tag.outputs.currenttag }} > changelog.txt
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: ./changelog.txt
draft: false
prerelease: false

0 comments on commit 60af8d9

Please sign in to comment.