Update current_milestone to 7.81.0 #1547
Workflow file for this run
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: Dependency Wheel Promotion Gate | |
| on: | |
| pull_request_target: | |
| branches: | |
| - master | |
| - 7.*.* | |
| jobs: | |
| check: | |
| name: Set dependency-wheel-promotion status | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| statuses: write | |
| contents: read | |
| steps: | |
| - name: Check if dependency files changed | |
| id: deps-changed | |
| uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | |
| with: | |
| script: | | |
| const files = await github.paginate(github.rest.pulls.listFiles, { | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| pull_number: context.payload.pull_request.number, | |
| per_page: 100, | |
| }); | |
| const depPaths = ['agent_requirements.in']; | |
| const changed = files.some(f => | |
| depPaths.includes(f.filename) || f.filename.startsWith('.deps/resolved/') | |
| ); | |
| core.setOutput('changed', changed ? 'true' : 'false'); | |
| - name: Set dependency-wheel-promotion status to pending | |
| if: steps.deps-changed.outputs.changed == 'true' | |
| uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | |
| with: | |
| script: | | |
| await github.rest.repos.createCommitStatus({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| sha: context.payload.pull_request.head.sha, | |
| state: 'pending', | |
| context: 'dependency-wheel-promotion', | |
| description: 'Wheels must be promoted to stable before merge. Run: ddev dep promote <PR_URL>', | |
| }); | |
| - name: Set dependency-wheel-promotion status to success | |
| if: steps.deps-changed.outputs.changed == 'false' | |
| uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | |
| with: | |
| script: | | |
| await github.rest.repos.createCommitStatus({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| sha: context.payload.pull_request.head.sha, | |
| state: 'success', | |
| context: 'dependency-wheel-promotion', | |
| description: 'No dependency changes — promotion not required.', | |
| }); |