Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set SHA of last successful workflow run regardless of event type #155

Open
lucasknode opened this issue May 30, 2024 · 0 comments
Open

Set SHA of last successful workflow run regardless of event type #155

lucasknode opened this issue May 30, 2024 · 0 comments
Labels
discussion A question or discussion from the user

Comments

@lucasknode
Copy link

Is there a way to run this action so that it will output the SHA of the last successful workflow run regardless of the event_type? Right now in the action if you don't specify last-successful-event, it defaults to "push". We have a workflow in our CI/CD pipeline that is triggered on push and workflow_dispatch. In this case we really just want the SHA of the last time the workflow completed successfully. If we were to filter on either event type we could get an incorrect SHA if the last successful workflow run was done via the other event.

@mandarini mandarini added the discussion A question or discussion from the user label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion A question or discussion from the user
Projects
None yet
Development

No branches or pull requests

2 participants