File tree Expand file tree Collapse file tree 3 files changed +41
-4
lines changed
Expand file tree Collapse file tree 3 files changed +41
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Action CI
22
33on :
44 push :
5- branches : [main ]
5+ branches : [master ]
66
77jobs :
88 build :
1515 node-version : 12
1616 registry-url : https://registry.npmjs.org/
1717 - name : Test action
18- uses : thetechtrap/dgit-action@main
18+ uses : thetechtrap/dgit-action@master
1919 # The action should not publish any real changes, but should succeed.
2020 with :
2121 dgitWallet : " ${{ secrets.DGIT_WALLET }}"
22- branch : " main "
22+ branch : " master "
2323 remoteUrl : " dgit://7yFP2o906A3nDl5eCMtN4Ycs9m5otfRrJDAGoGKDoHk/dgit-action"
Original file line number Diff line number Diff line change 11# dgit-action
2+
23Github action to mirror your Github repos to Dgit
4+
5+ Use it as the following mirror.yml
6+
7+ ```
8+ name: Dgit Mirror
9+
10+ on:
11+ push:
12+ branches: [master]
13+
14+ jobs:
15+ build:
16+ runs-on: ubuntu-latest
17+
18+ steps:
19+ - uses: actions/checkout@v2
20+ - uses: actions/setup-node@v1
21+ with:
22+ node-version: 12
23+ registry-url: https://registry.npmjs.org/
24+ - name: Dgit mirror action
25+ uses: thetechtrap/dgit-action@master
26+ # The action should not publish any real changes, but should succeed.
27+ with:
28+ dgitWallet: "${{ secrets.DGIT_WALLET }}"
29+ branch: "master"
30+ remoteUrl: "dgit://7yFP2o906A3nDl5eCMtN4Ycs9m5otfRrJDAGoGKDoHk/dgit-action"
31+
32+ ```
33+
34+ Add Arweave Wallet contents to a wallet and add it in secrets
35+
36+ Update values of
37+ ` dgitWallet ` - your wallet file pointing to the secret containg your wallet,
38+ ` branch ` - the branch to dgit your want to push,
39+ ` remoteUrl ` - your repository remote url created from https://dgit.sh
Original file line number Diff line number Diff line change 2828 # Steps represent a sequence of tasks that will be executed as part of the job
2929 steps :
3030 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
31- - run : npm install -g @thetechtrap/git-remote-dgit@0.1.3
31+ - run : npm install -g @thetechtrap/git-remote-dgit@^ 0.1.3
3232 shell : bash
3333 - name : Add Remote
3434 run : |
You can’t perform that action at this time.
0 commit comments