forked from bit-tasks/pull-request
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
29 lines (29 loc) · 884 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
name: 'Bit Pull Request'
description: 'Build components, snap and update lane for Pull Requests'
branding:
icon: 'git-pull-request'
color: 'purple'
inputs:
ws-dir:
description: "Workspace json file directory path"
required: false
token:
description: "Github token"
required: false
runs:
using: 'composite'
steps:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Run Bit Initialization Script
run: node ${{ github.action_path }}/dist/index.js
shell: bash
env:
WS_DIR: ${{ inputs.ws-dir }}
BIT_CONFIG_USER_TOKEN: ${{ inputs.BIT_CONFIG_USER_TOKEN }}
BIT_CLOUD_ACCESS_TOKEN: ${{ inputs.BIT_CLOUD_ACCESS_TOKEN }}
GIT_USER_NAME: ${{ inputs.GIT_USER_NAME }}
GIT_USER_EMAIL: ${{ inputs.GIT_USER_EMAIL }}
GITHUB_TOKEN: ${{ inputs.token }}