-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.49 KB
/
rust.yml
File metadata and controls
52 lines (46 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build and Upload Artifact
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "Cargo.toml"
jobs:
rutorrent:
uses: thevickypedia/rust-releaser/.github/workflows/entrypoint.yml@main
with:
build_linux_arm: false
build_macos_arm: false
build_windows_arm: false
secrets: inherit
release-notes:
needs: rutorrent
if: needs.rutorrent.outputs.release-flag == 'true'
runs-on:
- thevickypedia-default
- posix
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Update release
run: |
git fetch --tags
PREV_TAG=$(git describe --tags --abbrev=0 HEAD^)
echo "::notice title=Previous Release::${PREV_TAG}"
repository="${{ github.server_url }}/${{ github.repository }}"
git log "${PREV_TAG}..HEAD" --pretty=format:"- [%h](${repository}/commit/%H) %s" --no-merges > release_notes.txt
cat release_notes.txt
gh release edit ${{ needs.rutorrent.outputs.release-tag }} \
--repo ${{ github.repository }} \
--notes-file release_notes.txt
env:
GH_TOKEN: ${{ secrets.GIT_TOKEN }}
- name: Update Release Notes
uses: thevickypedia/update-release-notes@v2
with:
commit_message: "chore: Update release notes for ``${{ needs.rutorrent.outputs.release-tag }}``"
filename: release_notes.md
env:
git_token: ${{ secrets.GIT_TOKEN }}