[PR #2087] [MERGED] Evaluate if condition when calling a reusable workflow #2261

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

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/2087
Author: @jenseng
Created: 11/10/2023
Status: Merged
Merged: 11/12/2023
Merged by: @mergify[bot]

Base: masterHead: fix-reusable-workflow-if


📝 Commits (3)

  • 84365d2 Evaluate if condition when calling a reusable workflow
  • 873acb4 Merge branch 'master' into fix-reusable-workflow-if
  • 7fe5e12 Merge branch 'master' into fix-reusable-workflow-if

📊 Changes

2 files changed (+15 additions, -2 deletions)

View changed files

📝 pkg/runner/run_context.go (+4 -2)
📝 pkg/runner/run_context_test.go (+11 -0)

📄 Description

Ensure we evaluate the if condition if the job calls a reusable workflow, rather than always assuming it should run.

Fixes #2085


🔄 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/2087 **Author:** [@jenseng](https://github.com/jenseng) **Created:** 11/10/2023 **Status:** ✅ Merged **Merged:** 11/12/2023 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `fix-reusable-workflow-if` --- ### 📝 Commits (3) - [`84365d2`](https://github.com/nektos/act/commit/84365d2f64121002050c459ef68553742c9ab055) Evaluate if condition when calling a reusable workflow - [`873acb4`](https://github.com/nektos/act/commit/873acb47ced5afd100bd864cbf67b0490dd8751e) Merge branch 'master' into fix-reusable-workflow-if - [`7fe5e12`](https://github.com/nektos/act/commit/7fe5e129dba79313a97be75d8863fa8a5e39210c) Merge branch 'master' into fix-reusable-workflow-if ### 📊 Changes **2 files changed** (+15 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `pkg/runner/run_context.go` (+4 -2) 📝 `pkg/runner/run_context_test.go` (+11 -0) </details> ### 📄 Description Ensure we evaluate the `if` condition if the job calls a reusable workflow, rather than always assuming it should run. Fixes #2085 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:54:41 +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#2261
No description provided.