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-22.04 steps: - name: Harden the runner (Audit all outbound calls) uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 with: egress-policy: audit - uses: neondatabase/dev-actions/release-pr-notify@483a843f2a8bcfbdc4c69d27630528a3ddc4e14b # 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 }}