You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am struggling to get the release-drafter action to work for a private repo within a GitHub Enterprise account. I am running this action as part of a custom GHA workflow. I am not sure where to go from here. I have also tested removing the Set GHE_HOST job step but the action fails with an Error: Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"} error and a 422 HTTP status code when calling the https://api.github.com/repos/[MY_ORG]/[MY_REPO]/releases endpoint.
Steps I have taken so far:
Added a .github/release-drafter.yml file to the repository and merged the file into the main (default) branch.
name-template: 'Test - v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION-test'
categories:
- title: '🚀 Major/Breaking Changes'
labels:
- '(MAJOR)'
- title: '🐛 Minor Changes/Bug Fixes'
labels:
- '(MINOR)'
- title: '🧰 Maintenance Patches'
label: '(PATCH)'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
template: |
## Changes
$CHANGES
Created a new test branch and added the following steps to my GHA CI workflow.
UPDATE: Oddly enough, I was able to get the release-drafter action to work by disabling the Set GHE_HOST step and then manually setting the commitish input arg within the Update GitHub Release step. My repo is definitely being hosted in a GHE environment so I am a bit confused as to why I had to skip this step.
I am struggling to get the
release-drafter
action to work for a private repo within a GitHub Enterprise account. I am running this action as part of a custom GHA workflow. I am not sure where to go from here. I have also tested removing theSet GHE_HOST
job step but the action fails with anError: Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
error and a422
HTTP status code when calling thehttps://api.github.com/repos/[MY_ORG]/[MY_REPO]/releases
endpoint.Steps I have taken so far:
.github/release-drafter.yml
file to the repository and merged the file into themain
(default) branch.test
branch and added the following steps to my GHA CI workflow.test
branch (targeting themain
branch) to trigger the CI workflow to run.Expected Results
Actual Results
The text was updated successfully, but these errors were encountered: