-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
42 lines (42 loc) · 1.96 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
name: "Railway PR Deploy Action"
description: "Creates an environment with provided environment variables and deploys them to Railway."
inputs:
RAILWAY_API_TOKEN: # railway token
description: "Railway API Token"
required: true
PROJECT_ID:
description: "The id of the project to create environments on. Can be found on Settings -> General page"
required: true
SRC_ENVIRONMENT_NAME:
description: "The name of the environment to base the PRs off of. "
required: true
SRC_ENVIRONMENT_ID:
description: "The id of the environment to base the PRs off of. If this is provided, SRC_ENVIRONMENT_NAME will be ignored. "
required: false
DEST_ENV_NAME:
description: "The name of the deployed PR environment. Usually a combination of pr-<PR_NUMBER>-<SHORT_COMMIT_HASH> passed inside of workflow"
required: true
ENV_VARS:
description: 'The environment variables to set on the PR environment. Should be a JSON object of key value pairs. 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
PROVIDER:
description: "The provider to use for the PR environment. Can be python, see https://nixpacks.com/docs/guides/configuring-builds for more info."
required: true
branch_name:
description: "The name of the branch"
required: true
DEPLOYMENT_MAX_TIMEOUT:
description: "The maximum amount of time to wait for the deployment to finish. Defaults to 10 minutes."
required: false
IGNORE_SERVICE_REDEPLOY:
description: "A list of service names to ignore when redeploying the PR environment. This is useful for services that don't need to be redeployed on every PR deployment."
required: false
outputs:
service_domain:
description: "The domain of the deployed PR environment"
runs:
using: "node16"
main: "dist/index.js"