-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (40 loc) · 1.37 KB
/
mirror.js.yml
File metadata and controls
53 lines (40 loc) · 1.37 KB
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
47
48
49
50
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Mirror CI
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 8 * * *'
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'Test scenario tags'
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
jobs:
Mirror:
runs-on: ubuntu-latest
steps:
#- uses: actions/checkout@v2
- name: Clone SF
run: |
git clone --mirror https://git.code.sf.net/p/ngspice/ngspice.git
cd ngspice.git
echo -e 'git clone completed'
git config --global user.name danchitnis
git config --global user.email 'danchitnis@users.noreply.github.com'
git remote set-url --push origin https://danchitnis:$GITHUB_TOKEN@github.com/danchitnis/ngspice-sf-mirror
echo -e 'git setup completed'
- name: Fetch SF
run: |
cd ngspice.git
git fetch -p origin
- name: Push GH
run: |
cd ngspice.git
git push --mirror
echo -e 'git push completed'