[PR #2018] [MERGED] Fix float formatting #2233

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

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/2018
Author: @jenseng
Created: 9/22/2023
Status: Merged
Merged: 10/13/2023
Merged by: @mergify[bot]

Base: masterHead: fix-fromJSON-numbers


📝 Commits (1)

📊 Changes

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

View changed files

📝 pkg/exprparser/functions_test.go (+1 -0)
📝 pkg/exprparser/interpreter.go (+1 -1)

📄 Description

Format floats the same way as actions/runner (precision 15, remove trailing zeroes)

See: github.com/actions/runner@67d70803a9/src/Sdk/DTObjectTemplating/ObjectTemplating/Tokens/NumberToken.cs (L34)

Fixes #2017


🔄 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/2018 **Author:** [@jenseng](https://github.com/jenseng) **Created:** 9/22/2023 **Status:** ✅ Merged **Merged:** 10/13/2023 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `fix-fromJSON-numbers` --- ### 📝 Commits (1) - [`65e92b9`](https://github.com/nektos/act/commit/65e92b9dba872a35ecc15ed0a88aa7da48709531) Fix float formatting ### 📊 Changes **2 files changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `pkg/exprparser/functions_test.go` (+1 -0) 📝 `pkg/exprparser/interpreter.go` (+1 -1) </details> ### 📄 Description Format floats the same way as actions/runner (precision 15, remove trailing zeroes) See: https://github.com/actions/runner/blob/67d70803a95fca2fc86d89231acbc319f9a9be2a/src/Sdk/DTObjectTemplating/ObjectTemplating/Tokens/NumberToken.cs#L34 Fixes #2017 --- <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:34 +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#2233
No description provided.