[GH-ISSUE #387] Align "if: ${{ always() }}" step behaviour to GH #271

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

Originally created by @haizaar on GitHub (Oct 8, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/387

Good day,

I'm using act 0.2.15 here.

I have a job that creates per-job objects in the cloud so it needs to clean up them regardless whether it was successful or not.
I solved it by defining the last clean up step as:

    - name: Cleanup
      if: ${{ always() }}
      run: make cleanup

Indeed this step is unconditionally executed when it runs in GitHub actions but not by act. I.e. if one of the previous step fails, act will not run my Cleanup step.

Can you please align this behaviour with the GH?

Originally created by @haizaar on GitHub (Oct 8, 2020). Original GitHub issue: https://github.com/nektos/act/issues/387 Good day, I'm using act 0.2.15 here. I have a job that creates per-job objects in the cloud so it needs to clean up them regardless whether it was successful or not. I solved it by defining the last clean up step as: ```yaml - name: Cleanup if: ${{ always() }} run: make cleanup ``` Indeed this step is unconditionally executed when it runs in GitHub actions but not by act. I.e. if one of the previous step fails, act will not run my Cleanup step. Can you please align this behaviour with the GH?
kerem closed this issue 2026-03-01 21:41:57 +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#271
No description provided.