Skip to content

Commit

Permalink
Fork the repo before cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisaruGuruge committed Dec 16, 2024
1 parent 70ac103 commit a6c06f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/apply-library-repo-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,15 @@ jobs:
with:
path: template-repo

- name: Fork the target repository
run: gh repo fork ballerina-platform/${{ github.event.inputs.target_repo }} --remote
env:
GH_TOKEN: ${{ secrets.BALLERINA_BOT_TOKEN }}

- name: Checkout target repository
uses: actions/checkout@v3
with:
repository: ballerina-platform/${{ github.event.inputs.target_repo }}
repository: ballerina-bot/${{ github.event.inputs.target_repo }}
path: target-repo
token: ${{ secrets.BALLERINA_BOT_TOKEN }}

Expand Down

0 comments on commit a6c06f7

Please sign in to comment.