Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,19 @@ jobs:
token: ${{ secrets.HOMEBREW_UTILITY_ACCOUNT }}
repository: opticdev/homebrew-optic
event-type: version-update
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

# Tells slack a release has happened
notify-slack:
runs-on: ubuntu-latest
# needs: release-npm
name: Message Slack that Release has happened
steps:
- uses: actions/setup-node@v2-beta
name: Setup Node (to determine latest version of Optic)
with:
node-version: 12
- run: echo ::set-env name=MESSAGE::"${{ github.event.pusher.name }} released version $(npm view @useoptic/cli version) \n Publish Release Notes <https://github.com/opticdev/optic/releases|here>"
- name: Send message to Slack API
run: |
curl -X POST -H 'Content-type: application/json' --data '{"text":"${{ env.MESSAGE }}"}' ${{ secrets.SLACK_WEBHOOK_URL }}