-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
48 lines (48 loc) · 1.44 KB
/
action.yaml
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
branding:
icon: copy
color: white
name: In Sync Action
description: Keep files in-sync between repositories
inputs:
# git-author-email:
# description: 'Email of the committer.'
# git-author-name:
# description: 'Name of the committer.'
repositories:
description: 'Repositories where changes will be pushed to'
required: true
token:
description: >
Access token to read/write to the destination repo.
NOTE: same token is used to access all repos.
required: true
files:
description: 'Files to keep in sync, may be new line delimited'
required: true
pr-branch:
description: 'Branch to make the changes in'
default: insync/${{ github.repository }}
dry-run:
description: "Set true to run the job without pushing."
default: false
rebase-strategy:
description: "Disable automatic rebasing - auto|disabled"
default: auto
runs:
using: "composite"
steps:
# two phases: fetch, sync
- uses: actions/checkout@v2
with:
clean: false
persist-credentials: false
- run: pwd; ls -al
shell: bash
- run: ${{ github.action_path }}/src/main/sh/run.sh "${{ inputs.files }}"
env:
REPOSITORIES: "${{ inputs.repositories }}"
DST_TOKEN: ${{ inputs.token }}
GITHUB_TOKEN: ${{ inputs.token }} # required to create the PR via hub command line
PR_BRANCH: ${{ inputs.pr-branch }}
DRY_RUN: ${{ inputs.dry-run }}
shell: bash