Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit 4276f40

Browse files
committed
build: push master branch to bitbucket
1 parent ff611af commit 4276f40

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Push to BitBucket"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
repo-sync:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: "0"
17+
ref: "master"
18+
19+
- name: Install SSH key
20+
uses: shimataro/ssh-key-action@v2.3.1
21+
with:
22+
key: ${{ secrets.SSH_PRIVATE_KEY }}
23+
name: id_rsa
24+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
25+
26+
- run: |
27+
git remote add bitbucket git@bitbucket.org:DmitryKrutskikh/dart-code-metrics.git
28+
git config --global user.email "dmitry.krutskikh@gmail.com"
29+
git config --global user.name "Dmitry Krutskikh"
30+
git checkout master
31+
git push -u bitbucket master

0 commit comments

Comments
 (0)