[PR #259] [MERGED] Change -W command to accept a single file #1399

Closed
opened 2026-03-01 21:51:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/259
Author: @arbourd
Created: 5/27/2020
Status: Merged
Merged: 5/27/2020
Merged by: @cplee

Base: masterHead: set-single-workflow


📝 Commits (1)

  • 69b8802 Change -W command to accept a single file

📊 Changes

3 files changed (+21 additions, -6 deletions)

View changed files

📝 cmd/input.go (+1 -1)
📝 cmd/root.go (+1 -1)
📝 pkg/model/planner.go (+19 -4)

📄 Description

Currently setting workflows with the -W (--workflows) flag only accepts
a folder. It is not possible to run a single workflow.yml file.

This PR allows either a single file or a directory to be passed into
the workflows flag.

The change is quick and dirty and doesn't include support for a list (via globbing) or wildcard/globbing support.

Fixes #227


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/259 **Author:** [@arbourd](https://github.com/arbourd) **Created:** 5/27/2020 **Status:** ✅ Merged **Merged:** 5/27/2020 **Merged by:** [@cplee](https://github.com/cplee) **Base:** `master` ← **Head:** `set-single-workflow` --- ### 📝 Commits (1) - [`69b8802`](https://github.com/nektos/act/commit/69b8802ab3aeffa4ac0a8120e30e4f37ab49284f) Change -W command to accept a single file ### 📊 Changes **3 files changed** (+21 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `cmd/input.go` (+1 -1) 📝 `cmd/root.go` (+1 -1) 📝 `pkg/model/planner.go` (+19 -4) </details> ### 📄 Description Currently setting workflows with the -W (--workflows) flag only accepts a folder. It is not possible to run a single workflow.yml file. This PR allows either a single file or a directory to be passed into the workflows flag. The change is quick and dirty and doesn't include support for a list (via globbing) or wildcard/globbing support. Fixes #227 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:51:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
starred/act#1399
No description provided.