Skip to content

Commit

Permalink
Combine release notify and release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai committed Dec 17, 2024
1 parent 5d0c9b5 commit a1a80ff
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/release-notify-slack.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,22 @@ jobs:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
API_VERSION: ${{ steps.plugin_describe.outputs.api_version }}

notify:
needs: goreleaser
if: github.repository == 'linode/packer-plugin-linode'
runs-on: ubuntu-latest
steps:
- name: Notify Slack - Main Message
id: main_message
uses: slackapi/[email protected]
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
channel: ${{ secrets.DEV_DX_SLACK_CHANNEL_ID }}
blocks:
- type: section
text:
type: mrkdwn
text: "*New Release Published: _packer-plugin-linode_ <${{ github.event.release.html_url }}|${{ github.event.release.tag_name }}> is now live!* :tada:"

0 comments on commit a1a80ff

Please sign in to comment.