File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,24 +20,19 @@ jobs:
2020 - name : Checkout repository (no persisted credentials)
2121 uses : actions/checkout@v4
2222 with :
23- ref : main
2423 fetch-depth : 0
25- persist-credentials : false
26- env :
27- DEPLOY_TOKEN : ' ${{ secrets.DEPLOY }}'
28-
29-
30- - name : Configure git
31- run : |
32- git config --global user.name "github-actions[bot]"
33- git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
34- git remote add ssh-origin https://${{secrets.ACCESS_TOKEN}}@github.com/Sllambias/staging_private
3524
3625 - name : Start ssh-agent and add deploy key
3726 uses : webfactory/ssh-agent@v0.9.1
3827 with :
3928 ssh-private-key : ${{ secrets.DEPLOY }}
4029
30+ - name : Configure git
31+ run : |
32+ git config --global user.name "github-actions[bot]"
33+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
34+ git remote add ssh-origin git@github.com:ORGANISATION/REPOSITORY_B.git
35+
4136 - name : Ensure github.com is in known_hosts
4237 run : |
4338 mkdir -p ~/.ssh
You can’t perform that action at this time.
0 commit comments