I am trying to set a GitHub action that periodically clones an external repository (e.g., targetuser/targetrepo and for which I have a personal access token).
The GitHub action runs smoothly, but I have no clue where the repository is being cloned: I cannot see it in my GitHub account.
Also, I would like the cloned repository to be set as private.
This is my main.yml file based on this response:
name: mainAction
on:
schedule:
- cron: "*/5 * * * *"
workflow_dispatch:
jobs:
copyRepo:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Copy repo
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: git clone "https://"$ACCESS_TOKEN"@github.com/targetuser/targetrepo.git"
Edit
I would like to have a copy of the GitHub repository on my account, and not just in the runner's "container".