[PR #474] [MERGED] Add --env flag to pass environment vars without file #1460

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

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/474
Author: @catthehacker
Created: 1/14/2021
Status: Merged
Merged: 1/15/2021
Merged by: @cplee

Base: masterHead: env-flag


📝 Commits (1)

  • 62b708d Add --env flag to pass environment vars without file

📊 Changes

2 files changed (+12 additions, -0 deletions)

View changed files

📝 cmd/input.go (+1 -0)
📝 cmd/root.go (+11 -0)

📄 Description

Resolves #473
Unfortunately -e is used by --eventpath, but in my opinion it would be more intuitive to use -e as a shorthand for --env (like in docker run)
image


🔄 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/474 **Author:** [@catthehacker](https://github.com/catthehacker) **Created:** 1/14/2021 **Status:** ✅ Merged **Merged:** 1/15/2021 **Merged by:** [@cplee](https://github.com/cplee) **Base:** `master` ← **Head:** `env-flag` --- ### 📝 Commits (1) - [`62b708d`](https://github.com/nektos/act/commit/62b708d93a1356b268e3ecfeedc15707ddbf59dd) Add --env flag to pass environment vars without file ### 📊 Changes **2 files changed** (+12 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/input.go` (+1 -0) 📝 `cmd/root.go` (+11 -0) </details> ### 📄 Description Resolves #473 Unfortunately `-e` is used by `--eventpath`, but in my opinion it would be more intuitive to use `-e` as a shorthand for `--env` (like in `docker run`) ![image](https://user-images.githubusercontent.com/31106839/104622494-a1384c00-5691-11eb-91d8-973f54333862.png) --- <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:16 +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#1460
No description provided.