Start code freeze #151
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Start code freeze | |
| on: | |
| workflow_dispatch: | |
| milestone: | |
| types: [opened, created, edited] | |
| jobs: | |
| start_code_freeze: | |
| if: | | |
| github.event_name == 'workflow_dispatch' || | |
| (github.event.milestone.title == 'Code Freeze' && github.event.milestone.state == 'open') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| actions: read # read secrets | |
| pull-requests: read # Fetches PRs | |
| issues: write # Opens milestones | |
| statuses: write # add a commit status check | |
| env: | |
| GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
| steps: | |
| - name: Clone dd-trace-dotnet repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: octokit/request-action@786351db496fa66730d8faa09ef279108da175a3 # v2.x | |
| name: 'Open Code Freeze Milestone' | |
| id: milestones | |
| if: github.event_name == 'workflow_dispatch' | |
| with: | |
| route: PATCH /repos/{owner}/{repo}/milestones/115 | |
| owner: DataDog | |
| repo: dd-trace-dotnet | |
| state: open | |
| env: | |
| GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
| - uses: ./.github/actions/code-freeze | |
| name: 'Freeze 25 PRs' | |
| with: | |
| page_number: 1 | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: ./.github/actions/code-freeze | |
| name: 'Freeze 25 PRs' | |
| with: | |
| page_number: 2 | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: ./.github/actions/code-freeze | |
| name: 'Freeze 25 PRs' | |
| with: | |
| page_number: 3 | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: ./.github/actions/code-freeze | |
| name: 'Freeze 25 PRs' | |
| with: | |
| page_number: 4 | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: ./.github/actions/code-freeze | |
| name: 'Freeze 25 PRs' | |
| with: | |
| page_number: 5 | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: ./.github/actions/deploy-aas-dev-apps | |
| name: 'Trigger AAS deploy' | |
| with: | |
| github_app_id: ${{ secrets.GH_APP_ID }} | |
| github_app_private_key: ${{ secrets.GH_APP_PRIVATE_KEY }} |