Skip to content

Commit

Permalink
improvement(CI): add version to slack notification (#261)
Browse files Browse the repository at this point in the history
* add version to slack notification

* fix indent
  • Loading branch information
carmenberndt committed Jun 22, 2020
1 parent c8777bc commit 5c273b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- name: Bump versions
if: ${{ steps.check_for_updates.outputs.new_updates }}
run: yarn vsce:bump "latest"
id: bump_versions
- name: Compile
run: yarn compile
- name: Run headless e2e tests
Expand All @@ -43,7 +44,8 @@ jobs:
uses: rtCamp/action-slack-notify@v2.0.2
env:
SLACK_CHANNEL: feed-vscode
SLACK_MESSAGE: "Publishing stable failed :x:"
SLACK_TITLE: "Publishing stable failed :x:"
SLACK_MESSAGE: ${{ steps.bump_versions.outputs.version }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_ICON_EMOJI: ":ship:"
SLACK_USERNAME: vscode-actions
Expand All @@ -54,7 +56,8 @@ jobs:
uses: rtCamp/action-slack-notify@v2.0.2
env:
SLACK_CHANNEL: feed-vscode
SLACK_MESSAGE: "Published stable :white_check_mark:"
SLACK_TITLE: "Published stable :white_check_mark:"
SLACK_MESSAGE: ${{ steps.bump_versions.outputs.version }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_ICON_EMOJI: ":ship:"
SLACK_USERNAME: vscode-actions
Expand All @@ -74,6 +77,7 @@ jobs:
- name: Bump versions
if: ${{ steps.check_for_updates.outputs.new_updates }}
run: yarn vsce:bump "dev"
id: bump_versions
- name: Compile
run: yarn compile
- name: Run headless e2e tests
Expand All @@ -89,7 +93,8 @@ jobs:
uses: rtCamp/action-slack-notify@v2.0.2
env:
SLACK_CHANNEL: feed-vscode
SLACK_MESSAGE: "Publishing Insider failed :x:"
SLACK_TITLE: "Publishing Insider Version failed :x:"
SLACK_MESSAGE: ${{ steps.bump_versions.outputs.version }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_ICON_EMOJI: ":ship:"
SLACK_USERNAME: vscode-actions
Expand All @@ -99,7 +104,8 @@ jobs:
uses: rtCamp/action-slack-notify@v2.0.2
env:
SLACK_CHANNEL: feed-vscode
SLACK_MESSAGE: "Published Insider :white_check_mark:"
SLACK_TITLE: "Published Insider Version :white_check_mark:"
SLACK_MESSAGE: ${{ steps.bump_versions.outputs.version }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_ICON_EMOJI: ":ship:"
SLACK_USERNAME: vscode-actions
Expand Down
2 changes: 2 additions & 0 deletions scripts/bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ else
node scripts/change-readme.js "$RELEASE_CHANNEL"
fi

echo "::set-output name=version::$NEXT_EXTENSION_VERSION"

jq ".version = \"$NEXT_EXTENSION_VERSION\" | \
.prisma.version = \"$SHA\" | \
.dependencies[\"@prisma/get-platform\"] = \"$NPM_VERSION\"" \
Expand Down

0 comments on commit 5c273b4

Please sign in to comment.