-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (37 loc) · 1008 Bytes
/
test_deploy.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Synchronize to forked repo
on:
push:
branches:
- dev
jobs:
sync:
name: Sync forked repo
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
token: ${{ secrets.FORKED_REPO_TOKEN }}
fetch-depth: 0
ref: dev
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: yarn install
- name: Run lint
run: npm run lint
- name: Run tests
run: npm test
- name: Configure git
run: |
git remote add forked-repo https://aaaz425:${{ secrets.FORKED_REPO_TOKEN }}@github.com/aaaz425/masil
git config user.name "aaaz425"
git config user.email "[email protected]"
- name: Push to forked-repo
run: |
git push -f forked-repo dev:main
- name: Clean up
run: |
git remote remove forked-repo