Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Commit

Permalink
Adding comments
Browse files Browse the repository at this point in the history
  • Loading branch information
harold-velez committed Apr 16, 2020
1 parent 4ae6d76 commit 598337c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions ps_spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ stages:
name: PR Test
when:
- pull_request
- pull_request:
trigger_phrase: test it
image: node:13
compute_size: small
commands:
Expand All @@ -18,6 +20,19 @@ stages:
- npm run lint
- npm run build
- npx madge --circular --extensions ts --ts-config tsconfig.json src
- |
CODEBUILD_SOURCE_VERSION_WARNING="master"
if [ "$CODEBUILD_SOURCE_VERSION" = "$CODEBUILD_SOURCE_VERSION_WARNING" ]; then
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.2
GITHUB_TOKEN=$ALPS_GH_TOKEN
PKGNAME=$(node -e 'console.log(require("./package.json").name)')
PKGVERSION=$(node -e 'console.log(require("./package.json").version)')
LATEST_VERSION=$(npm show $PKGNAME version)
echo "⚠️ **WARNING** - Merging this pull request will result in a publish of **$PKGNAME** to npm from version **$LATEST_VERSION** to **$PKGVERSION**" > comments.txt
bin/hub api repos/alertlogic/$ALPS_REPO_NAME/issues/$ALPS_PR_NUMBER/comments --field [email protected]
fi
- echo done

-
name: Master Push - Publish
Expand Down Expand Up @@ -58,8 +73,6 @@ stages:
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.2
GITHUB_TOKEN=$ALPS_GH_TOKEN
npm install
if [ "$WORDCOUNT" -eq 0 ]; then
Expand Down

0 comments on commit 598337c

Please sign in to comment.