[GH-ISSUE #1615] Add support for variable GITHUB_RUN_ATTEMPT #807

Closed
opened 2026-03-01 21:46:32 +03:00 by kerem · 1 comment
Owner

Originally created by @fabienmazieres on GitHub (Feb 6, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1615

Act version

act version 0.2.42

Feature description

Please add support for the default environment variable GITHUB_RUN_ATTEMPT as it can be used to generate build numbers

<html>
GITHUB_RUN_ATTEMPT A unique number for each attempt of a particular workflow run in a repository. This number begins at 1 for the workflow run's first attempt, and increments with each re-run. For example, 3.
</html>
Originally created by @fabienmazieres on GitHub (Feb 6, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1615 ### Act version act version 0.2.42 ### Feature description Please add support for the default environment variable GITHUB_RUN_ATTEMPT as it can be used to generate build numbers <html> <body> <!--StartFragment--> GITHUB_RUN_ATTEMPT | A unique number for each attempt of a particular workflow run in a repository. This number begins at 1 for the workflow run's first attempt, and increments with each re-run. For example, 3. -- | -- <!--EndFragment--> </body> </html>
kerem 2026-03-01 21:46:32 +03:00
Author
Owner

@KnisterPeter commented on GitHub (Feb 6, 2023):

You can define the value by yourself with calling act like this:

act --env GITHUB_RUN_ATTEMPT=123 ...

<!-- gh-comment-id:1419103041 --> @KnisterPeter commented on GitHub (Feb 6, 2023): You can define the value by yourself with calling act like this: `act --env GITHUB_RUN_ATTEMPT=123 ...`
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#807
No description provided.