-
Notifications
You must be signed in to change notification settings - Fork 9
/
action.yml
61 lines (59 loc) · 1.92 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: 'Ryu-Cho'
description: 'Automatic git commit tracking service.'
inputs:
access-token:
description: 'Access token for GitHub authentication'
required: true
username:
description: 'Username for authenticated user'
required: true
email:
description: 'Email for authenticated user'
required: true
upstream-repo:
description: 'Repository that tracks the head repo. e.g. [email protected]:vuejs-jp/vite-docs-ja.git'
required: true
upstream-repo-branch:
description: 'Branch name for upstream repo. Defaults to `main`'
required: false
default: 'main'
head-repo:
description: 'Repository to track. e.g. https://github.com/vitejs/vite'
required: true
head-repo-branch:
description: 'Branch name for head repo. Defaults to `main`'
required: false
default: 'main'
track-from:
description: 'The git commit to track from. e.g. 4ed8b2f83a2f149734f3c5ecb6438309bd85a9e5'
required: true
path-starts-with:
description: 'File path to track. e.g `docs/`'
required: false
workflow-name:
description: 'GitHub workflow name that executes Ryu Cho action. Defaults to `ryu-cho`'
required: false
default: 'ryu-cho'
runs:
using: "composite"
steps:
- name: Checkout Ryu-Cho
run: ${{ github.action_path }}/scripts/checkout.sh
shell: bash
- name: Run Ryu-Cho
env:
ACCESS_TOKEN: ${{ inputs.access-token }}
USER_NAME: ${{ inputs.username }}
EMAIL: ${{ inputs.email }}
UPSTREAM_REPO: ${{ inputs.upstream-repo }}
UPSTREAM_REPO_BRANCH: ${{ inputs.upstream-repo-branch }}
HEAD_REPO: ${{ inputs.head-repo }}
HEAD_REPO_BRANCH: ${{ inputs.head-repo-branch }}
TRACK_FROM: ${{ inputs.track-from }}
PATH_STARTS_WITH: ${{ inputs.path-starts-with }}
WORKFLOW_NAME: ${{ inputs.workflow-name }}
run: |
cd ryu-cho
yarn install
yarn start
shell: bash