-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
30 lines (30 loc) · 864 Bytes
/
action.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
name: 'AnthRepoSync'
author:
- name: 'Anthony Kung'
email: '[email protected]'
description: 'GitHub Action to sync repositories (push to another repo when push detected on current repo)'
inputs:
RS_TARGET:
description: 'Target repository in org/repo format e.g. Anthonykung/RepoSync'
required: true
RS_PAT:
description: 'GitHub Personal Access Token (PAT) DO NOT PASS IT IN YOUR .yml, only secrets accepted'
required: true
runs:
using: "composite"
steps:
- name: Get current repo
uses: actions/checkout@v2
with:
path: source
- name: Get target repo
uses: actions/checkout@v2
with:
repository: ${{ inputs.RS_TARGET }}
token: ${{ inputs.RS_PAT }}
path: target
- run: ${{ github.action_path }}/RepoSync.sh
shell: bash
branding:
icon: 'refresh-cw'
color: 'orange'