Commit 0853636 1 parent bf880b4 commit 0853636 Copy full SHA for 0853636
File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ The PHP version to use. This is directly passed to [`shivammathur/setup-php`](ht
24
24
25
25
An option to force push changes to the project repository on Platform.sh. Use with caution as force push overrides your commit history.
26
26
27
+ ### ` environment-name `
28
+
29
+ The name of the platform.sh instance on which to act. Default: The current branch name.
30
+
27
31
## Outputs
28
32
29
33
No outputs.
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ inputs:
17
17
force-push :
18
18
description : ' Force push to Platform.sh'
19
19
required : false
20
+ environment-name :
21
+ description : ' Name of the platform.sh instance'
22
+ required : false
20
23
runs :
21
24
using : " composite"
22
25
steps :
36
39
PLATFORM_PROJECT_ID : ${{ inputs.project-id }}
37
40
PLATFORMSH_CLI_TOKEN : ${{ inputs.cli-token }}
38
41
FORCE_PUSH : ${{ inputs.force-push }}
42
+ ENVIRONMENT_NAME : ${{ inputs.environment-name }}
39
43
branding :
40
44
icon : upload-cloud
41
45
color : orange
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ mkdir -p ~/.ssh && chmod 0700 ~/.ssh
11
11
cat ${GITHUB_ACTION_PATH} /known_hosts >> ~ /.ssh/known_hosts
12
12
13
13
platform project:set-remote ${PLATFORM_PROJECT_ID}
14
- PLATFORM_OPTS=" -vv --activate --target ${GITHUB_REF_NAME} "
14
+ [[ " $ENVIRONMENT_NAME " == " " ]] && ENVIRONMENT_NAME=" $GITHUB_REF_NAME "
15
+ PLATFORM_OPTS=" -vv --activate --target $ENVIRONMENT_NAME "
15
16
if [[ -n " $FORCE_PUSH " ]]; then
16
17
PLATFORM_OPTS=" $PLATFORM_OPTS --force"
17
18
fi
You can’t perform that action at this time.
0 commit comments