[PR #30] [MERGED] --watch #1332

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

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/30
Author: @jnewland
Created: 2/10/2019
Status: Merged
Merged: 2/13/2019
Merged by: @cplee

Base: masterHead: watch


📝 Commits (2)

📊 Changes

19 files changed (+1076 additions, -18 deletions)

View changed files

📝 cmd/root.go (+79 -18)
📝 go.mod (+2 -0)
📝 go.sum (+4 -0)
vendor/github.com/andreaskoch/go-fswatch/.travis.yml (+2 -0)
vendor/github.com/andreaskoch/go-fswatch/LICENSE (+27 -0)
vendor/github.com/andreaskoch/go-fswatch/README.md (+90 -0)
vendor/github.com/andreaskoch/go-fswatch/debug.go (+33 -0)
vendor/github.com/andreaskoch/go-fswatch/file.go (+192 -0)
vendor/github.com/andreaskoch/go-fswatch/folder.go (+250 -0)
vendor/github.com/andreaskoch/go-fswatch/folderchange.go (+46 -0)
vendor/github.com/andreaskoch/go-fswatch/util.go (+14 -0)
vendor/github.com/andreaskoch/go-fswatch/watcher.go (+15 -0)
vendor/github.com/sabhiram/go-gitignore/.gitignore (+28 -0)
vendor/github.com/sabhiram/go-gitignore/.travis.yml (+18 -0)
vendor/github.com/sabhiram/go-gitignore/LICENSE (+22 -0)
vendor/github.com/sabhiram/go-gitignore/README.md (+15 -0)
vendor/github.com/sabhiram/go-gitignore/ignore.go (+223 -0)
vendor/github.com/sabhiram/go-gitignore/version_gen.go (+12 -0)
📝 vendor/modules.txt (+4 -0)

📄 Description

This PR adds support for a --watch or -w flag to act. When provided, act doesn't exit after the first run, but instead runs a goroutine that watches the local directory for changes (ignoring files in .gitignore). When changes are detected, the workflow file is parsed and run again.

A redux of #29, this time without conflicts.


🔄 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/30 **Author:** [@jnewland](https://github.com/jnewland) **Created:** 2/10/2019 **Status:** ✅ Merged **Merged:** 2/13/2019 **Merged by:** [@cplee](https://github.com/cplee) **Base:** `master` ← **Head:** `watch` --- ### 📝 Commits (2) - [`3198627`](https://github.com/nektos/act/commit/3198627879e15e4551a2433d16d37c9efc735849) --watch - [`4228018`](https://github.com/nektos/act/commit/42280181773b382079b931e61e6979eadfa9b43f) Merge branch 'master' into watch ### 📊 Changes **19 files changed** (+1076 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `cmd/root.go` (+79 -18) 📝 `go.mod` (+2 -0) 📝 `go.sum` (+4 -0) ➕ `vendor/github.com/andreaskoch/go-fswatch/.travis.yml` (+2 -0) ➕ `vendor/github.com/andreaskoch/go-fswatch/LICENSE` (+27 -0) ➕ `vendor/github.com/andreaskoch/go-fswatch/README.md` (+90 -0) ➕ `vendor/github.com/andreaskoch/go-fswatch/debug.go` (+33 -0) ➕ `vendor/github.com/andreaskoch/go-fswatch/file.go` (+192 -0) ➕ `vendor/github.com/andreaskoch/go-fswatch/folder.go` (+250 -0) ➕ `vendor/github.com/andreaskoch/go-fswatch/folderchange.go` (+46 -0) ➕ `vendor/github.com/andreaskoch/go-fswatch/util.go` (+14 -0) ➕ `vendor/github.com/andreaskoch/go-fswatch/watcher.go` (+15 -0) ➕ `vendor/github.com/sabhiram/go-gitignore/.gitignore` (+28 -0) ➕ `vendor/github.com/sabhiram/go-gitignore/.travis.yml` (+18 -0) ➕ `vendor/github.com/sabhiram/go-gitignore/LICENSE` (+22 -0) ➕ `vendor/github.com/sabhiram/go-gitignore/README.md` (+15 -0) ➕ `vendor/github.com/sabhiram/go-gitignore/ignore.go` (+223 -0) ➕ `vendor/github.com/sabhiram/go-gitignore/version_gen.go` (+12 -0) 📝 `vendor/modules.txt` (+4 -0) </details> ### 📄 Description This PR adds support for a `--watch` or `-w` flag to `act`. When provided, `act` doesn't exit after the first run, but instead runs a goroutine that watches the local directory for changes (ignoring files in `.gitignore`). When changes are detected, the workflow file is parsed and run again. A redux of #29, this time without conflicts. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:50:44 +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#1332
No description provided.