Skip to content

[Release Proposal] #1252

[Release Proposal]

[Release Proposal] #1252

name: "[Release Proposal]"
on:
workflow_dispatch:
schedule:
- cron: 0 5 * * 1-5
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
create-proposal:
strategy:
fail-fast: false
matrix:
release-line: ["5"]
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: DataDog/dd-octo-sts-action@96a25462dbcb10ebf0bfd6e2ccc917d2ab235b9a # v1.0.4
id: octo-sts
with:
scope: DataDog/dd-trace-js
policy: release-proposal
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
token: ${{ steps.octo-sts.outputs.token }}
- uses: ./.github/actions/node
with:
version: ""
- uses: ./.github/actions/install/branch-diff
with:
token: ${{ steps.octo-sts.outputs.token }}
- id: proposal
run: node scripts/release/proposal ${{ matrix.release-line }} -y ${{ github.event_name == 'workflow_dispatch' && '-f' || '' }}
env:
GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }}
- uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v2.1.0
if: >
github.event_name == 'schedule' &&
steps.proposal.outputs.commit_count != '' &&
fromJSON(steps.proposal.outputs.commit_count) >= 50
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
errors: true
payload: |
channel: ${{ secrets.SLACK_CHANNEL_ID }}
blocks:
- type: "section"
text:
type: "mrkdwn"
text: >-
:warning: *Release proposal
<${{ steps.proposal.outputs.pr_url }}|${{ steps.proposal.outputs.version }}>*
has ${{ steps.proposal.outputs.commit_count }} commits queued.
GitHub's rebase limit is 100 — once reached, commits that don't fit
will be deferred to a subsequent release.
Consider cutting this release soon.