use v4 gitea generate changelog fail
Closed this issue ยท 5 comments
- name: Generate Changelog
id: changelog
uses: https://github.com/mikepenz/release-changelog-builder-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
platform: "gitea"
baseUrl: "http://gitea:3000"
commitMode: true
configuration: "configuration.json"
https://github.com/dreamncn/release-changelog-builder-action@v4.0.1
this is available
seem to see the diff import fetch from 'cross-fetch';
Thank you for the report @hb0730
The problem comes from GitHub having removed their default fetch of the core
libraries. Given GitHub Actions now use Node 20 by default: https://github.com/mikepenz/release-changelog-builder-action/blob/develop/action.yml#L88 this wasn't needed anymore.
Could it be gitea
ignores the node version spec and uses an older version?
See the change here: https://github.com/mikepenz/release-changelog-builder-action/pull/1247/files#diff-2c7f562c1d912b27b703ce00c2353bf9d6cdad43a6c3726d7ad917b8ab8ecd57L66-L68
What I don't understand. Gitea support was added after fetch
was removed. ๐ค so it appears something must have changed in regards to this?
Or could it be you selfhost gitea and are maybe on an older version?
gitea act-runner default use node:16-bullseye
, upgrade to node:20-bullseye
successโ
๐๐๐
Glad this resolved it.
GitHub does automatically pick the node version based on the action.yml
file. Good to know gitea
doesn't do this.