Adding Changelog
This commit is contained in:
@@ -6,6 +6,18 @@ on:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
changelog:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Generate Release Changelog
|
||||
run: |
|
||||
git log --pretty="- %s" --since=$(curl -s -X 'GET' 'https://gitea.computersurge.dev/api/v1/repos/ninjasurge/ninjasurge.sh/releases' -H 'accept: application/json' | jq -r '.[0].published_at') > changelog
|
||||
|
||||
checksum:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
@@ -48,3 +60,16 @@ jobs:
|
||||
.checksum
|
||||
tag_name: ${{ steps.version.outputs.VERSION }}
|
||||
name: Release ${{ steps.version.outputs.VERSION }}
|
||||
body_path: changelog
|
||||
|
||||
cleanup:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Remove changelog
|
||||
run: |
|
||||
rm changelog .checksum
|
||||
|
||||
Reference in New Issue
Block a user