-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 898 Bytes
/
sync-repo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: sync-to-bitbucket
on:
push
jobs:
build:
if: github.actor == 'dirkarnez'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # <-- clone with complete history
- continue-on-error: true
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.SARURURURU_GIT_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/user/repos \
-d '{"name":"${{ github.event.repository.name }}","private": false}'
- uses: yesolutions/[email protected]
with:
REMOTE: '[email protected]:sarurururu/${{ github.event.repository.name }}.git'
GIT_SSH_PRIVATE_KEY: ${{ secrets.GIT_SSH_PRIVATE_KEY }}
GIT_SSH_NO_VERIFY_HOST: "true"