Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziwi01 committed Jan 10, 2024
2 parents 9165478 + fcae3db commit 9b66b42
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "pre-release"
name: "Pre-release"

on:
push:
Expand All @@ -10,7 +10,7 @@ on:

jobs:
pre-release:
name: "Pre Release"
name: "Pre-release"
runs-on: ubuntu-22.04

steps:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Get previous tag
id: previousTag
run: |
name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1)
name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | grep -v 'latest' | tail -2 | head -1)
echo "previousTag: $name"
echo "previousTag=$name" >> $GITHUB_ENV
Expand All @@ -41,3 +41,10 @@ jobs:
name: ${{ github.ref_name }}
body: ${{ steps.changelog.outputs.changes }}
token: ${{ github.token }}

- uses: dev-drprasad/delete-older-releases@v0.3.2
with:
delete_prerelease_only: true
keep_latest: 0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9b66b42

Please sign in to comment.