release-notes-assistant does not seem to do anything #41

Open
opened 2025-03-03 16:06:01 +00:00 by PlexSheep · 0 comments

With

      - name: Create release
        uses: actions/forgejo-release@v2
        id: create_release
        with:
          direction: upload
          release-dir: release
          release-notes-assistant: true
          hide-archive-link: true
          verbose: true
          token: ${{ secrets.FORGEJO_TOKEN }}

It does creates a new release with an empty body.

Full output for that step:

+ : https://git.cscherr.de
+ : PlexSheep/totalschaden
+ : release
+ : /tmp/tmp.o1V3bhqNTv
+ : /tmp/tmp.o1V3bhqNTv
+ : /tmp/tmp.o1V3bhqNTv
+ : 0.9.0
+ : false
+ : 1
+ : 10
+ export GNUPGHOME
+ upload
+ setup_api
+ which jq curl
/usr/bin/jq
/usr/bin/curl
+ setup_tea
+ test -f /tmp/tmp.o1V3bhqNTv/tea
+ curl -sL https://dl.gitea.io/tea/0.9.0/tea-0.9.0-linux-amd64
+ chmod +x /tmp/tmp.o1V3bhqNTv/tea
+ rm -f /root/.config/tea/config.yml
+ GITEA_SERVER_TOKEN=***
+ /tmp/tmp.o1V3bhqNTv/tea login add --url https://git.cscherr.de
Login as forgejo-actions on https://git.cscherr.de successful. Added this login as git.cscherr.de
+ maybe_sign_release
+ test -s /tmp/tmp.o1V3bhqNTv/gpg-private-key
+ maybe_override
+ test false = false
+ return
+ upload_release
++ ls release/totalschaden-6.1.0-30-amd64.tar.gz
++ sed -e 's/^/-a /'
+ local 'assets=-a release/totalschaden-6.1.0-30-amd64.tar.gz'
+ local releasetype
+ false
+ echo v0.1.0
+ grep -qi '\-rc'
Uploading as Stable
+ test
+ echo 'Uploading as Stable'
+ ensure_tag
+ api GET repos/PlexSheep/totalschaden/tags/v0.1.0
+ method=GET
+ shift
+ path=repos/PlexSheep/totalschaden/tags/v0.1.0
+ shift
+ curl --fail -X GET -sS -H 'Content-Type: application/json' -H 'Authorization: token ***' https://git.cscherr.de/api/v1/repos/PlexSheep/totalschaden/tags/v0.1.0
++ jq --raw-output .commit.sha
+ local sha=a22c86250290551801e93855634d55873652a0b9
+ test a22c86250290551801e93855634d55873652a0b9 '!=' a22c86250290551801e93855634d55873652a0b9
++ echo v0.1.0
++ sed -e 's/^v//' -e 's/[^a-zA-Z0-9]/-/g'
+ anchor=0-1-0
+ /tmp/tmp.o1V3bhqNTv/tea release create -a release/totalschaden-6.1.0-30-amd64.tar.gz --repo PlexSheep/totalschaden --note '' --tag v0.1.0 --title v0.1.0 --draft
+ release_draft false
+ local state=false
++ api GET repos/PlexSheep/totalschaden/releases/tags/v0.1.0
++ jq --raw-output .id
++ method=GET
++ shift
++ path=repos/PlexSheep/totalschaden/releases/tags/v0.1.0
++ shift
++ curl --fail -X GET -sS -H 'Content-Type: application/json' -H 'Authorization: token ***' https://git.cscherr.de/api/v1/repos/PlexSheep/totalschaden/releases/tags/v0.1.0
+ local id=208
+ api PATCH repos/PlexSheep/totalschaden/releases/208 --data-raw '{"draft": false}'
+ method=PATCH
+ shift
+ path=repos/PlexSheep/totalschaden/releases/208
+ shift
+ curl --fail -X PATCH -sS -H 'Content-Type: application/json' -H 'Authorization: token ***' --data-raw '{"draft": false}' https://git.cscherr.de/api/v1/repos/PlexSheep/totalschaden/releases/208
{"id":208,"tag_name":"v0.1.0","target_commitish":"","name":"v0.1.0","body":"","url":"https://git.cscherr.de/api/v1/repos/PlexSheep/totalschaden/releases/208","html_url":"https://git.cscherr.de/PlexSheep/totalschaden/releases/tag/v0.1.0","tarball_url":"https://git.cscherr.de/PlexSheep/totalschaden/archive/v0.1.0.tar.gz","zipball_url":"https://git.cscherr.de/PlexSheep/totalschaden/archive/v0.1.0.zip","hide_archive_links":false,"upload_url":"https://git.cscherr.de/api/v1/repos/PlexSheep/totalschaden/releases/208/assets","draft":false,"prerelease":false,"created_at":"2025-03-03T17:02:38+01:00","published_at":"2025-03-03T17:02:38+01:00","author":{"id":1,"login":"PlexSheep","login_name":"","source_id":0,"full_name":"Christoph J. Scherr","email":"plexsheep@noreply@cscherr.de","avatar_url":"https://git.cscherr.de/avatars/782b6db1cd4ed6be73973b3b431d764f30afeaa8b420daa31493b9ad6f0008cb","html_url":"https://git.cscherr.de/PlexSheep","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2023-04-16T12:47:57+02:00","restricted":false,"active":false,"prohibit_login":false,"location":"Deutschland","pronouns":"","website":"https://www.cscherr.de","description":"I study cybersecurity focused computer science at DHBW Mannheim, while working at NewTec.","visibility":"public","followers_count":1,"following_count":1,"starred_repos_count":1,"username":"PlexSheep"},"assets":[{"id":19,"name":"totalschaden-6.1.0-30-amd64.tar.gz","size":136223,"download_count":0,"created_at":"2025-03-03T17:02:38+01:00","uuid":"be3d099d-a8f4-4870-87f1-6718a34251c3","browser_download_url":"https://git.cscherr.de/PlexSheep/totalschaden/releases/download/v0.1.0/totalschaden-6.1.0-30-amd64.tar.gz","type":"attachment"}],"archive_download_count":{"zip":0,"tar_gz":0}}
With ``` - name: Create release uses: actions/forgejo-release@v2 id: create_release with: direction: upload release-dir: release release-notes-assistant: true hide-archive-link: true verbose: true token: ${{ secrets.FORGEJO_TOKEN }} ``` It does creates a new release with an empty body. Full output for that step: ``` + : https://git.cscherr.de + : PlexSheep/totalschaden + : release + : /tmp/tmp.o1V3bhqNTv + : /tmp/tmp.o1V3bhqNTv + : /tmp/tmp.o1V3bhqNTv + : 0.9.0 + : false + : 1 + : 10 + export GNUPGHOME + upload + setup_api + which jq curl /usr/bin/jq /usr/bin/curl + setup_tea + test -f /tmp/tmp.o1V3bhqNTv/tea + curl -sL https://dl.gitea.io/tea/0.9.0/tea-0.9.0-linux-amd64 + chmod +x /tmp/tmp.o1V3bhqNTv/tea + rm -f /root/.config/tea/config.yml + GITEA_SERVER_TOKEN=*** + /tmp/tmp.o1V3bhqNTv/tea login add --url https://git.cscherr.de Login as forgejo-actions on https://git.cscherr.de successful. Added this login as git.cscherr.de + maybe_sign_release + test -s /tmp/tmp.o1V3bhqNTv/gpg-private-key + maybe_override + test false = false + return + upload_release ++ ls release/totalschaden-6.1.0-30-amd64.tar.gz ++ sed -e 's/^/-a /' + local 'assets=-a release/totalschaden-6.1.0-30-amd64.tar.gz' + local releasetype + false + echo v0.1.0 + grep -qi '\-rc' Uploading as Stable + test + echo 'Uploading as Stable' + ensure_tag + api GET repos/PlexSheep/totalschaden/tags/v0.1.0 + method=GET + shift + path=repos/PlexSheep/totalschaden/tags/v0.1.0 + shift + curl --fail -X GET -sS -H 'Content-Type: application/json' -H 'Authorization: token ***' https://git.cscherr.de/api/v1/repos/PlexSheep/totalschaden/tags/v0.1.0 ++ jq --raw-output .commit.sha + local sha=a22c86250290551801e93855634d55873652a0b9 + test a22c86250290551801e93855634d55873652a0b9 '!=' a22c86250290551801e93855634d55873652a0b9 ++ echo v0.1.0 ++ sed -e 's/^v//' -e 's/[^a-zA-Z0-9]/-/g' + anchor=0-1-0 + /tmp/tmp.o1V3bhqNTv/tea release create -a release/totalschaden-6.1.0-30-amd64.tar.gz --repo PlexSheep/totalschaden --note '' --tag v0.1.0 --title v0.1.0 --draft + release_draft false + local state=false ++ api GET repos/PlexSheep/totalschaden/releases/tags/v0.1.0 ++ jq --raw-output .id ++ method=GET ++ shift ++ path=repos/PlexSheep/totalschaden/releases/tags/v0.1.0 ++ shift ++ curl --fail -X GET -sS -H 'Content-Type: application/json' -H 'Authorization: token ***' https://git.cscherr.de/api/v1/repos/PlexSheep/totalschaden/releases/tags/v0.1.0 + local id=208 + api PATCH repos/PlexSheep/totalschaden/releases/208 --data-raw '{"draft": false}' + method=PATCH + shift + path=repos/PlexSheep/totalschaden/releases/208 + shift + curl --fail -X PATCH -sS -H 'Content-Type: application/json' -H 'Authorization: token ***' --data-raw '{"draft": false}' https://git.cscherr.de/api/v1/repos/PlexSheep/totalschaden/releases/208 {"id":208,"tag_name":"v0.1.0","target_commitish":"","name":"v0.1.0","body":"","url":"https://git.cscherr.de/api/v1/repos/PlexSheep/totalschaden/releases/208","html_url":"https://git.cscherr.de/PlexSheep/totalschaden/releases/tag/v0.1.0","tarball_url":"https://git.cscherr.de/PlexSheep/totalschaden/archive/v0.1.0.tar.gz","zipball_url":"https://git.cscherr.de/PlexSheep/totalschaden/archive/v0.1.0.zip","hide_archive_links":false,"upload_url":"https://git.cscherr.de/api/v1/repos/PlexSheep/totalschaden/releases/208/assets","draft":false,"prerelease":false,"created_at":"2025-03-03T17:02:38+01:00","published_at":"2025-03-03T17:02:38+01:00","author":{"id":1,"login":"PlexSheep","login_name":"","source_id":0,"full_name":"Christoph J. Scherr","email":"plexsheep@noreply@cscherr.de","avatar_url":"https://git.cscherr.de/avatars/782b6db1cd4ed6be73973b3b431d764f30afeaa8b420daa31493b9ad6f0008cb","html_url":"https://git.cscherr.de/PlexSheep","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2023-04-16T12:47:57+02:00","restricted":false,"active":false,"prohibit_login":false,"location":"Deutschland","pronouns":"","website":"https://www.cscherr.de","description":"I study cybersecurity focused computer science at DHBW Mannheim, while working at NewTec.","visibility":"public","followers_count":1,"following_count":1,"starred_repos_count":1,"username":"PlexSheep"},"assets":[{"id":19,"name":"totalschaden-6.1.0-30-amd64.tar.gz","size":136223,"download_count":0,"created_at":"2025-03-03T17:02:38+01:00","uuid":"be3d099d-a8f4-4870-87f1-6718a34251c3","browser_download_url":"https://git.cscherr.de/PlexSheep/totalschaden/releases/download/v0.1.0/totalschaden-6.1.0-30-amd64.tar.gz","type":"attachment"}],"archive_download_count":{"zip":0,"tar_gz":0}} ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
actions/forgejo-release#41
No description provided.