feat: allow for draft releases #99

Open
crueter wants to merge 1 commit from crueter/forgejo-release:draft into main
Contributor

Closes #56.

Adds a draft input that, if true, skips the step of setting the draft
status to false.

Signed-off-by: crueter crueter@eden-emu.dev

Closes #56. Adds a `draft` input that, if true, skips the step of setting the draft status to false. Signed-off-by: crueter <crueter@eden-emu.dev>
feat: allow for draft releases
All checks were successful
/ tests (pull_request) Successful in 8s
/ integration (pull_request) Successful in 19m6s
0bca42135c
Closes #56.

Adds a `draft` input that, if true, skips the step of setting the draft
status to false.

Signed-off-by: crueter <crueter@eden-emu.dev>
First-time contributor

Well, this PR works in that it produces a new draft-release, but then the action simply fails. See https://codeberg.org/randysimons/komplete-konfigure/actions/runs/27/jobs/0/attempt/1#jobstep-7-79 (result of workflow codeberg.org/randysimons/komplete-konfigure@63f8376107/.forgejo/workflows/release.yaml (L42))

If I set draft: false, the action succeeds - resulting in a non-draft release. See https://codeberg.org/randysimons/komplete-konfigure/actions/runs/28/jobs/0/attempt/1

If draft: true, the expression [ "$DRAFT" = "false" ] && release_draft false resolves to false . Could that be the problem, and that a regular if would fix it?

Well, this PR works in that it produces a new draft-release, but then the action simply fails. See https://codeberg.org/randysimons/komplete-konfigure/actions/runs/27/jobs/0/attempt/1#jobstep-7-79 (result of workflow https://codeberg.org/randysimons/komplete-konfigure/src/commit/63f837610721fcdcb4d592a830fcf99dcb35f535f94136b7c2a817c3b7ddab5e/.forgejo/workflows/release.yaml#L42) If I set `draft: false`, the action succeeds - resulting in a non-draft release. See https://codeberg.org/randysimons/komplete-konfigure/actions/runs/28/jobs/0/attempt/1 If `draft: true`, the expression ` [ "$DRAFT" = "false" ] && release_draft false` resolves to `false` . Could that be the problem, and that a regular `if` would fix it?
Author
Contributor

The proper solution would be [ "$DRAFT" != "false" ] || <set to draft>. I'll change that in a bit

The proper solution would be `[ "$DRAFT" != "false" ] || <set to draft>`. I'll change that in a bit
All checks were successful
/ tests (pull_request) Successful in 8s
/ integration (pull_request) Successful in 19m6s
Required
Details
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u draft:crueter-draft
git switch crueter-draft
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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!99
No description provided.