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

Fetch latest commit #461

Closed
LukasWallrich opened this issue Mar 17, 2021 · 3 comments
Closed

Fetch latest commit #461

LukasWallrich opened this issue Mar 17, 2021 · 3 comments

Comments

@LukasWallrich
Copy link

LukasWallrich commented Mar 17, 2021

Thanks for this helpful workflow. However, I am facing an issue that I can't work out - I would like to include two steps into the same workflow: checkout -> document -> commit -> checkout -> test

However, I can't get the second checkout to get the more recent commit rather than the commit that started the action. Any chance to get that to work? Given that it can sometimes be difficult to coordinate across GH Actions, this would seem to be a helpful functionality if not yet present ...

@ericsciple
Copy link
Contributor

You might need to provide the ref input, for example ref: ${{ github.ref }}. By default the SHA that triggered the event is checked out.

@bauergeorg
Copy link

I had the same problem... ref: ${{ github.ref }} works

@bauergeorg
Copy link

I think this hint should be added into the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants