mirror of
https://github.com/nektos/act.git
synced 2026-04-26 17:35:49 +03:00
[PR #1804] [MERGED] throw when invalid uses key is provided #2135
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#2135
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/1804
Author: @JoshMcCullough
Created: 5/13/2023
Status: ✅ Merged
Merged: 7/11/2023
Merged by: @cplee
Base:
master← Head:jsm/fix-workflow-jobtype📝 Commits (10+)
e874540throw ifusesis invalid79776a8update JobType to return errorab711ffMerge branch 'master' into jsm/fix-workflow-jobtype5a95bfelintb8b3c8eput //nolint:dupl on wrong test0060436update error message to remove end punctuation919982clint7d005c1update remote job type check921167bmove if statementbc33613rm nolint:dupl ... we'll see how that goes📊 Changes
4 files changed (+123 additions, -30 deletions)
View changed files
📝
pkg/model/workflow.go(+27 -9)📝
pkg/model/workflow_test.go(+71 -10)📝
pkg/runner/run_context.go(+18 -10)📝
pkg/runner/runner.go(+7 -1)📄 Description
Originally I thought the path checks were too specific, and the a reusable workflow didn't need to be stored under
.github/workflows/. I believe I was confusing actions with workflows while reading the docs. So in the end, this PR ends up being simply to throw/exit in the case that an invalidusesis provided.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.