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

Can I check out a new branch? #1657

Closed
zkytony opened this issue Mar 13, 2024 · 1 comment
Closed

Can I check out a new branch? #1657

zkytony opened this issue Mar 13, 2024 · 1 comment

Comments

@zkytony
Copy link

zkytony commented Mar 13, 2024

Is it possible to checkout a ref that does not exist (such as a new branch)?

    - uses: actions/checkout@v4
      with:
        ref: "new-branch"
@cory-miller
Copy link
Contributor

That's not what this action is meant for, but you could do something like this if you need it:

    - uses: actions/checkout@v4
      with:
        ref: "existing-branch"
    - run: |
        git checkout -b new-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

No branches or pull requests

2 participants