-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
42 lines (39 loc) · 1.29 KB
/
action.yml
File metadata and controls
42 lines (39 loc) · 1.29 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
# This is a basic workflow to help you get started with Actions
name: "Dgit Mirror Action"
description: "Pushes your github repo to Dgit"
author: "thetechtrap"
branding:
icon: arrow-up-circle
color: green
inputs:
dgitWallet:
description: 'Dgit Wallet file contents. Can be passed in using $\{{ secrets.DGIT_WALLET }}'
required: true
remoteUrl:
description: "Dgit Respository remote Url, eg, dgit://wallet_address/repo_name"
required: true
branch:
description: "Destination branch to push changes"
required: false
default: "master"
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master bran
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
runs:
using:
"composite"
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- run: npm install -g @thetechtrap/git-remote-dgit@^0.1.3
shell: bash
- name: Add Remote
run: |
git remote add dgit ${{inputs.remoteUrl}}
shell: bash
- name: Push to Dgit
run: |
git push dgit ${{inputs.branch}}
shell: bash
env:
DGIT_WALLET: ${{inputs.dgitWallet}}