mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1527
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/628
Author: @Renstrom
Created: 4/22/2021
Status: ✅ Merged
Merged: 5/5/2021
Merged by: @cplee
Base:
master← Head:master📝 Commits (7)
848021bPotentially solved merge conflicta7efd1cUpdate pkg/model/planner.goe9524d9Merge branch 'master' into master9c1d87eFixed compilation error3fc0cfffixed merge conflictsef1144eadded missed testc8e4c70Fixed spelling error to work with lint error📊 Changes
5 files changed (+87 additions, -6 deletions)
View changed files
📝
pkg/model/planner.go(+49 -0)📝
pkg/model/workflow.go(+2 -2)📝
pkg/runner/run_context.go(+4 -4)📝
pkg/runner/runner_test.go(+1 -0)➕
pkg/runner/testdata/issue-598/spelling.yml(+31 -0)📄 Description
Issue solution for issue #598
fixes #598
Problem description
This solution fixes issue #598, the problem occurs when the workflow got initiated
model/workflow.go:325 (func ReadWorkFlow()). The reason was due to that the decoder removes the ("") when it got set into the interface.
Solution
This solution ${[ }} to the corners if "" statements exist.
So if the problem is:
"!contains(github.event_name, 'pull_request')"
then the string becomes:
${{ !contains(github.event_name, 'pull_request' }}.
This makes it so the decoder interprets the string to ${{!contains(github.event_name, 'pull_request')}} which solves the issue.
Alternative solution
I tried looking for a way to optimize the code by fixing the yaml decoder, but couldn't find a better solution than this.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.