Skip to content

add docs about checking out the triggering ref #21

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

Conversation

zeke
Copy link
Contributor

@zeke zeke commented Aug 24, 2019

@TingluoHuang TingluoHuang merged commit 0963d3b into actions:master Sep 5, 2019
@@ -20,6 +21,16 @@ steps:
- run: npm test
```

By default, the branch or tag ref that triggered the workflow will be checked out. If you wish to check out a different branch, specify that using `with.ref`:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't quite right. The branch/tag's HEAD will be checked out, which means (by default) the repo is in a Detached HEAD state. That's different than checking out the branch or tag, which is not a detached HEAD.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification. Do you want to open a followup PR to make these docs more clear?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how to checkout to the branch without bing detached?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sfc-gh-zhwang you should be able to fork the repo, clone it, and work off the main branch.

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

Successfully merging this pull request may close these issues.

4 participants