[PR #667] [MERGED] Fix environment variables and move envs.txt/event.json to fixed location #1548

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

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/667
Author: @catthehacker
Created: 5/5/2021
Status: Merged
Merged: 5/5/2021
Merged by: @mergify[bot]

Base: masterHead: cat/fix/environment-variables


📝 Commits (2)

  • 0f1df59 fix: environment variables sourcing from /etc/environment
  • 2ba5489 fix: move envs.txt & event.json to /tmp/

📊 Changes

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

View changed files

📝 pkg/container/docker_run.go (+8 -6)
📝 pkg/model/workflow.go (+2 -2)
📝 pkg/runner/run_context.go (+7 -7)
📝 pkg/runner/step_context.go (+2 -3)

📄 Description

fix: move envs.txt & event.json to /tmp/workflow/

Since #635 envs.txt is not copying properly when running act in WSL2 (Linux <> Linux) (didn't tried it with Windows <> Linux scenario)
Moving it to fixed location resolves that as it doesn't need to move around since we have GITHUB_ENV
fix: environment variables sourcing from /etc/environment


🔄 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/667 **Author:** [@catthehacker](https://github.com/catthehacker) **Created:** 5/5/2021 **Status:** ✅ Merged **Merged:** 5/5/2021 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `cat/fix/environment-variables` --- ### 📝 Commits (2) - [`0f1df59`](https://github.com/nektos/act/commit/0f1df592fa56d95a2f8bb07a3406d4c6ac22b8d2) fix: environment variables sourcing from `/etc/environment` - [`2ba5489`](https://github.com/nektos/act/commit/2ba54890ce6111abececca38e050cde619f0e18f) fix: move `envs.txt` & `event.json` to `/tmp/` ### 📊 Changes **4 files changed** (+19 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `pkg/container/docker_run.go` (+8 -6) 📝 `pkg/model/workflow.go` (+2 -2) 📝 `pkg/runner/run_context.go` (+7 -7) 📝 `pkg/runner/step_context.go` (+2 -3) </details> ### 📄 Description fix: move `envs.txt` & `event.json` to `/tmp/workflow/` Since #635 envs.txt is not copying properly when running act in WSL2 (Linux <> Linux) (didn't tried it with Windows <> Linux scenario) Moving it to fixed location resolves that as it doesn't need to move around since we have `GITHUB_ENV` fix: environment variables sourcing from `/etc/environment` --- <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:39 +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#1548
No description provided.