1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-26 04:22:05 +02:00
goreleaser/.github/workflows/milestone.yml

59 lines
1.6 KiB
YAML
Raw Normal View History

# shamelessly copied from https://github.com/sigstore/cosign/blob/main/.github/workflows/milestone.yaml
name: milestone
on:
pull_request_target:
types: [closed]
branches:
- main
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:
chore(deps): bump actions/github-script from 6.3.3 to 6.4.0 (#3723) Bumps [actions/github-script](https://github.com/actions/github-script) from 6.3.3 to 6.4.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/github-script/releases">actions/github-script's releases</a>.</em></p> <blockquote> <h2>v6.4.0</h2> <h2>What's Changed</h2> <ul> <li>Bump json5 from 2.1.3 to 2.2.3 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://github-redirect.dependabot.com/actions/github-script/pull/319">actions/github-script#319</a></li> <li>Bump minimatch from 3.0.4 to 3.1.2 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://github-redirect.dependabot.com/actions/github-script/pull/320">actions/github-script#320</a></li> <li>Add node-fetch by <a href="https://github.com/danmichaelo"><code>@​danmichaelo</code></a> in <a href="https://github-redirect.dependabot.com/actions/github-script/pull/321">actions/github-script#321</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/jongwooo"><code>@​jongwooo</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/actions/github-script/pull/313">actions/github-script#313</a></li> <li><a href="https://github.com/austinvazquez"><code>@​austinvazquez</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/actions/github-script/pull/306">actions/github-script#306</a></li> <li><a href="https://github.com/danmichaelo"><code>@​danmichaelo</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/actions/github-script/pull/321">actions/github-script#321</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/github-script/compare/v6.3.3...v6.4.0">https://github.com/actions/github-script/compare/v6.3.3...v6.4.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/github-script/commit/98814c53be79b1d30f795b907e553d8679345975"><code>98814c5</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/actions/github-script/issues/339">#339</a> from actions/joshmgross/bump-package-version</li> <li><a href="https://github.com/actions/github-script/commit/ba6cf3fe7cf53f06998ea428adfe8f0da42d62fa"><code>ba6cf3f</code></a> Bump version to 6.4.0</li> <li><a href="https://github.com/actions/github-script/commit/bcc389184da6172665613604320b19b409a8c941"><code>bcc3891</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/actions/github-script/issues/321">#321</a> from danmichaelo/node-fetch</li> <li><a href="https://github.com/actions/github-script/commit/da8818015eb5c3d01f8ad6db6bd8e3a2b460c71c"><code>da88180</code></a> Merge <code>main</code></li> <li><a href="https://github.com/actions/github-script/commit/4d93f388900dddc32a5a278a0ff985a0f06ca5c8"><code>4d93f38</code></a> Update dist and audit deps</li> <li><a href="https://github.com/actions/github-script/commit/0550e858012a6d3a73fbdd735e96b8e4c35e5a9d"><code>0550e85</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/actions/github-script/issues/336">#336</a> from actions/joshmgross/minimatch-license</li> <li><a href="https://github.com/actions/github-script/commit/5420835fff8001a224a310d320b6e02eed0713d8"><code>5420835</code></a> Merge branch 'main' into joshmgross/minimatch-license</li> <li><a href="https://github.com/actions/github-script/commit/03377835c3717d8126c1d93eaaa72b55287f783d"><code>0337783</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/actions/github-script/issues/338">#338</a> from actions/joshmgross/fix-dist</li> <li><a href="https://github.com/actions/github-script/commit/8c6dda0186c7ac8a53030e285851d54aabcd3620"><code>8c6dda0</code></a> Regenerate <code>dist</code></li> <li><a href="https://github.com/actions/github-script/commit/ee0d992b062bc63a761e39c472f63aa0865b1e41"><code>ee0d992</code></a> Use Node 16 in CI and examples</li> <li>Additional commits viewable in <a href="https://github.com/actions/github-script/compare/d556feaca394842dc55e4734bf3bb9f685482fa0...98814c53be79b1d30f795b907e553d8679345975">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/github-script&package-manager=github_actions&previous-version=6.3.3&new-version=6.4.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-27 08:55:28 -03:00
- uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6
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
});