Skip to content

Commit

Permalink
fix: change the release template
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoub3bidi committed Feb 4, 2024
1 parent 8f4af4f commit 1c9356d
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
name: Releases
name: Release

on:
push:
branches:
- main

jobs:
changelog:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v3.7.1
with:
github-token: ${{ secrets.CHANGELOG_RELEASE }}
- name: Extract version from commit message
id: version
run: |
VERSION=$(echo ${{ github.event.head_commit.message }} | grep -oP 'release \K\d+\.\d+\.\d+')
echo "::set-output name=version::$VERSION"
- name: create release
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.CHANGELOG_RELEASE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
tag_name: ${{ steps.version.outputs.version }}
release_name: Release ${{ steps.version.outputs.version }}
draft: false
prerelease: false

0 comments on commit 1c9356d

Please sign in to comment.