Skip to content

Commit 128c705

Browse files
authored
Update deploy_to_private.yaml
1 parent 920a192 commit 128c705

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/deploy_to_private.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)