[DO-NOT-MERGE] Az/kc beta cache and close 7.47 #38243
Workflow file for this run
This file contains 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: Changelog label check | |
on: | |
pull_request: | |
types: [opened, labeled, unlabeled, synchronize] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Check changelog label | |
run: python .github/workflows/changelog-label-check.py | |
- name: Comment | |
if: ${{ github.event.action == 'labeled' && contains( github.event.pull_request.labels.*.name, 'changelog/Changed') }} | |
uses: actions/github-script@0.3.0 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const { issue: { number: issue_number }, repo: { owner, repo } } = context; | |
github.issues.createComment({ issue_number, owner, repo, body: "Label `changelog/Changed` was added to this Pull Request, so the next release will bump major version. Please make sure this is a breaking change, or use the `changelog/Fixed` label." }); |