Skip to content

Commit 1e7bba0

Browse files
committed
Add environment and defaults.
1 parent 5140d01 commit 1e7bba0

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed
Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@ on:
33
inputs:
44

55
git_repository:
6+
default: ${{ github.event.repository.clone_url }}
67
required: true
78
type: string
89
description: The repository to deploy.
910

1011
git_reference:
12+
default: ${{ github.head_ref || github.ref_name }}
1113
required: true
1214
type: string
1315
description: The git reference to deploy.
1416

15-
path:
17+
git_root:
1618
required: true
1719
type: string
1820
description: The path to clone the repository into. (Use absolute paths. Otherwise it is relative to the github runner workspace, which is ephemeral.)
@@ -28,7 +30,7 @@ on:
2830
description: Whether to run the sync command.
2931

3032
deploy_command:
31-
default: ddev sync
33+
default: ddev drush deploy
3234
type: string
3335
description: The command to run after deploying new code.
3436

@@ -55,9 +57,19 @@ on:
5557
default: ubuntu-latest
5658
description: The label of the runner you wish to use.
5759

60+
github_environment:
61+
type: string
62+
default: ${{ github.head_ref || github.ref_name }}
63+
description: The string to use as the github environment.
64+
5865
jobs:
5966
deploy-code:
6067
runs-on: ${{ inputs.github_runs_on }}
68+
69+
environment:
70+
name: ${{ inputs.github_environment }}
71+
url: "http://${{ inputs.ddev_project_name }}.${{ inputs.ddev_project_tld }}?${{ github.run_id }}"
72+
6173
steps:
6274
- name: Hello world
6375
run: |

0 commit comments

Comments
 (0)