Skip to content

Commit 4ed1ae1

Browse files
authored
Merge pull request #15 from atlassian-labs/sbland2-update-readme
Update orb formatting
2 parents 18fe775 + 4019e55 commit 4ed1ae1

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ workflows:
1616
tags:
1717
only: /.*/
1818
- orb-tools/review:
19+
exclude: RC008
1920
filters:
2021
tags:
2122
only: /.*/

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![CircleCI Build Status](https://circleci.com/gh/atlassian-labs/Compass-Orb.svg?style=shield 'CircleCI Build Status')](https://circleci.com/gh/atlassian-labs/Compass-Orb) [![CircleCI Orb Version](https://badges.circleci.com/orbs/atlassian-labs/compass.svg)](https://circleci.com/orbs/registry/orb/atlassian-labs/compass) [![Atlassian license](https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=flat-square)](LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](CONTRIBUTING.md)
44

5-
An orb for reporting the status of CircleCI builds and deployments to Atlassian Compass
5+
An orb for reporting the status of CircleCI builds and deployments to Atlassian Compass.
66

77
## Usage
88

src/commands/notify_deployment.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,11 @@ steps:
5151
- run:
5252
name: COMPASS - Set Environment Name
5353
# `environment` is by default a variable name `${CIRCLE_JOB}`
54-
# but unlike parameters, variables are not interpolated in config.yml
54+
# but unlike parameters, variables are not interpolated in config.yml
5555
# they must evaluate inside the container as part of a step
56-
command: |
57-
echo 'export ENVIRONMENT_NAME="<<parameters.environment>>"' >> $BASH_ENV
58-
source $BASH_ENV
59-
echo "Using displayName: $ENVIRONMENT_NAME"
56+
environment:
57+
ENVIRONMENT_NAME: <<parameters.environment>>
58+
command: <<include(scripts/set_environment_name.sh)>>
6059
when: always
6160
- run:
6261
name: Update status in Atlassian Compass
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
echo "export ENVIRONMENT_NAME=${ENVIRONMENT_NAME}" >> $BASH_ENV
2+
source $BASH_ENV
3+
echo "Using displayName: $ENVIRONMENT_NAME"

0 commit comments

Comments
 (0)