chore(deps): bump sigstore/cosign-installer from 3.6.0 to 3.7.0 #293
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
# shamelessly copied from https://github.com/sigstore/cosign/blob/main/.github/workflows/milestone.yaml | |
name: milestone | |
on: | |
pull_request_target: | |
types: [closed] | |
branches: | |
- master | |
jobs: | |
milestone: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: none | |
checks: none | |
contents: read | |
deployments: none | |
issues: write | |
packages: none | |
pull-requests: write | |
repository-projects: none | |
security-events: none | |
statuses: none | |
steps: | |
- uses: actions/github-script@v7 | |
with: | |
script: | | |
if (!context.payload.pull_request.merged) { | |
console.log('PR was not merged, skipping.'); | |
return; | |
} | |
if (!!context.payload.pull_request.milestone) { | |
console.log('PR has existing milestone, skipping.'); | |
return; | |
} | |
milestones = await github.rest.issues.listMilestones({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
state: 'open', | |
sort: 'due_on', | |
direction: 'asc' | |
}) | |
if (milestones.data.length === 0) { | |
console.log('There are no milestones, skipping.'); | |
return; | |
} | |
await github.rest.issues.update({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.payload.pull_request.number, | |
milestone: milestones.data[0].number | |
}); |