Skip to content

feat(deps): bump golang.org/x/crypto from 0.14.0 to 0.17.0 #249

feat(deps): bump golang.org/x/crypto from 0.14.0 to 0.17.0

feat(deps): bump golang.org/x/crypto from 0.14.0 to 0.17.0 #249

Workflow file for this run

# shamelessly copied from https://github.com/sigstore/cosign/blob/main/.github/workflows/milestone.yaml
name: milestone
on:
pull_request_target:
types: [closed]
branches:
- main
permissions:
contents: read
issues: write
pull-requests: write
jobs:
milestone:
runs-on: ubuntu-latest
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
});