diff --git a/.github/workflows/release-notify.yml b/.github/workflows/release-notify.yml new file mode 100644 index 0000000000..ba396dba74 --- /dev/null +++ b/.github/workflows/release-notify.yml @@ -0,0 +1,29 @@ +name: Notify Slack channel about upcoming release + +concurrency: + group: ${{ github.workflow }}-${{ github.event.number }} + cancel-in-progress: true + +on: + pull_request: + branches: + - release + types: + # Default types that triggers a workflow: + # - https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request + - opened + - synchronize + - reopened + # Additional types that we want to handle: + - closed + +jobs: + notify: + runs-on: [ ubuntu-latest ] + + steps: + - uses: neondatabase/dev-actions/release-pr-notify@main + with: + slack-token: ${{ secrets.SLACK_BOT_TOKEN }} + slack-channel-id: ${{ vars.SLACK_UPCOMING_RELEASE_CHANNEL_ID || 'C05QQ9J1BRC' }} # if not set, then `#test-release-notifications` + github-token: ${{ secrets.GITHUB_TOKEN }}