Skip to content

Commit ce30927

Browse files
committed
Merge development into master — resolve locale conflicts (keep EarthPortal search placeholder)
2 parents 378bfe4 + fbfe45c commit ce30927

52 files changed

Lines changed: 533 additions & 375 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,22 @@ name: Capistrano Deployment
2020
on:
2121
push:
2222
branches:
23-
- stage
23+
- development
2424
- test
2525
# Allows running this workflow manually from the Actions tab
2626
workflow_dispatch:
2727
inputs:
2828
BRANCH:
29-
description: "Branch/tag to deploy"
30-
type: choice
31-
options:
32-
- master
33-
- stage
34-
- test
35-
default: stage
29+
description: "Branch/tag to deploy (test, development, master)"
30+
default: development
3631
required: true
3732
environment:
3833
description: "Target environment to deploy to"
3934
type: choice
4035
options:
41-
- agroportal
42-
- staging
4336
- test
37+
- staging
38+
- agroportal
4439
default: staging
4540
required: true
4641

@@ -58,14 +53,14 @@ jobs:
5853
# workflow_dispatch default input doesn't get set on push so we need to set defaults
5954
# via shell parameter expansion
6055
# https://dev.to/mrmike/github-action-handling-input-default-value-5f2g
61-
USER_INPUT_BRANCH=${{ inputs.branch }}
62-
echo "BRANCH=${USER_INPUT_BRANCH:github.head_ref}" >> $GITHUB_ENV
56+
USER_INPUT_BRANCH=${{ inputs.BRANCH }}
57+
echo "BRANCH=${USER_INPUT_BRANCH:-${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}}" >> $GITHUB_ENV
6358
6459
# Set default environment
6560
if [ "${{ github.event_name }}" = "push" ]; then
6661
# Set TARGET based on the branch
6762
case "$BRANCH" in
68-
"stage")
63+
"development")
6964
TARGET="staging"
7065
;;
7166
"test")
15.1 KB
Loading
2.34 KB
Loading
1.77 KB
Loading
1.33 KB
Loading
13.2 KB
Loading
4.65 KB
Loading
21.2 KB
Loading
2.74 KB
Loading
4.12 KB
Loading

0 commit comments

Comments
 (0)