chore(deps): bump github/codeql-action from 3.27.9 to 3.28.0 #3076
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Check milestone | |
permissions: {} | |
on: | |
pull_request: | |
branches: | |
- main | |
- release-* | |
types: | |
- opened | |
- demilestoned | |
- milestoned | |
- edited | |
- synchronize | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-milestone: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check milestone | |
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | |
with: | |
script: | | |
const { data } = await github.request("GET /repos/{owner}/{repo}/pulls/{pr}", { | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
pr: context.payload.pull_request.number | |
}); | |
if (data.milestone) { | |
core.info(`This pull request has a milestone set: ${data.milestone.title}`); | |
} else { | |
core.setFailed(`A milestone need to be set on this pull request.`); | |
} |