From aa3619c58632104527d4800e65f18db676750bcf Mon Sep 17 00:00:00 2001 From: Thomas Boop Date: Mon, 4 Nov 2019 15:50:24 -0500 Subject: [PATCH] Add checkout different repo example back in --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 148ee91..01ce251 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,15 @@ Checkout different branch from the workflow repository: ref: some-branch ``` +Checkout different private repository: +```yaml +- uses: actions/checkout@v1 + with: + repository: myAccount/myRepository + ref: refs/heads/master + token: ${{ secrets.GitHub_PAT }} // `GitHub_PAT` is a secret contains your PAT. +``` + Checkout private submodules: ```yaml - uses: actions/checkout@v1