mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #45] [CLOSED] Scaffold a new action with --init (-i) flag #1337
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#1337
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/45
Author: @sosedoff
Created: 2/27/2019
Status: ❌ Closed
Base:
master← Head:init📝 Commits (4)
dd16951Add flag --init to scaffold a new workflow and actionf35f3c8Add basic push templatec13ca7eFixb576e17Pull template from a git repo📊 Changes
6 files changed (+83 additions, -11 deletions)
View changed files
📝
actions/api.go(+2 -0)📝
cmd/root.go(+59 -1)📝
common/file.go(+8 -10)➕
templates/push/action/Dockerfile(+3 -0)➕
templates/push/action/entrypoint.sh(+3 -0)➕
templates/push/main.workflow(+8 -0)📄 Description
I think
actcould be improved with a feature to help setting up a new workflow.For any existing project running
act --init [push|pull-request|other event type]will create a new workflow file and an example action template using dummy Dockerfile. It's not much but definitely enough to get rolling with github actions without all the manual work.New command will only execute if user does not have a
.githubdirectory (or whatever is set with workspace dir). In order to get started with a new action using docker, one has to type 2 commands:And then take it from there to develop and test whatever action they need.
act --initcreates the following files in the current directory:@nektos any thoughts?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.