Created
September 10, 2020 19:02
-
-
Save anshulsahni/435edc0928665d972eb642e7f54b0f94 to your computer and use it in GitHub Desktop.
Using submodules in actions/checkout@v2 for private Repos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
submodules: <<true | recursive>> | |
# Generate a personal access token from https://github.com/settings/tokens | |
# Added that token as a secret in your repo at https://github.com/<<username>>/<<repo>>/settings/secrets/new | |
# In the token key below, access the same token using secrets.<<YOUR_SECRET_NAME>> | |
token: ${{ secrets.MY_ACCOUNT_PAT }} | |
# For more reference see | |
# - https://github.com/actions/checkout/issues/116#issuecomment-644419389 | |
# - https://github.com/actions/checkout/issues/116 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment