Skip to content
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
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ on:
push:
branches:
- main
release:
types:
- published
workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
rc:
name: RC
if: github.event_name != 'release'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: Without this line, publishing a release would also run RC now that we subscribe the published as well.

runs-on: ubuntu-latest
permissions:
contents: write
Expand Down Expand Up @@ -149,3 +153,20 @@ jobs:
gh pr create --draft --head rc --base main --title "$PR_TITLE" --body "$PR_BODY" --milestone "Next Release" --label "release" --label "semver:${SEMVER}"
echo "Created new release PR"
fi

notify:
name: Notify
if: github.event_name == 'release' && !github.event.release.prerelease
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Notify Slack
uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d # v4.0.0
with:
webhook: ${{ secrets.SLACK_RELEASE_ANNOUNCEMENTS_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
action_url: "${{ github.event.release.html_url }}"
message: "slack-cli ${{ github.event.release.tag_name }}"
repository: "${{ github.repository }}"
Loading