generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
73 lines (69 loc) · 2.31 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
62
63
64
65
66
67
68
69
70
71
72
73
name: 'Railway Preview Deploy Action'
description:
'Railway preview deployment GitHub Actions workflow for every pull request
opened in your repository like a Vercel'
author: 'Wahyu Kurniawwan <[email protected]>'
# Add your action's branding here. This will appear on the GitHub Marketplace.
branding:
icon: 'activity'
color: 'purple'
# Define your inputs here.
inputs:
railway_api_token:
description: 'The Railway API token'
required: true
project_id:
description:
'The Railway project ID, you can find it in the Railway dashboard >
Settings > General page'
required: true
environment_name:
description: 'The environment name to be base of the preview deployment'
required: true
environment_id:
description:
"The environment ID to be base of the preview deployment. If it's
provided, the `environment_name` will be ignored"
required: false
preview_environment_name:
description:
'The new environment name to be created for the preview deployment. E.g.
`pr-<PR_NUMBER>-<SHORT_COMMIT_HASH>`'
required: true
environment_variables:
description:
'The environment variables to be set in the preview deployment. Should be
a JSON object of key value paris. E.g. {"DATABASE_URL": "test_url", "A":
"abc", "D": "efg"}'
required: false
api_service_name:
description:
'The name of the API service to use for the PR environment. This is used
to identify the domain of the deployed PR environment'
required: false
ignore_service_redeploy:
description:
"List of service name to ignore when redeploying the PR environment. This
is useful for services that don't need to be redeployed on every PR"
required: false
branch_name:
description:
'The branch name of the PR to be used for the preview deployment'
required: true
reuse_preview_environment:
description:
"Whether to reuse the existing preview environment if it's already created"
required: false
default: 'true'
cleanup:
description:
'Whether to cleanup the preview environment after the PR is closed'
required: false
default: 'false'
# Define your outputs here.
outputs:
service_domain:
description: 'The domain of the service that was deployed'
runs:
using: node20
main: dist/index.js