nwtgck / actions-comment-run

Execute any script in a GitHub issue comment
MIT License
439 stars 11 forks source link

build(deps): bump @actions/github from 5.1.1 to 6.0.0 #804

Closed dependabot[bot] closed 7 months ago

dependabot[bot] commented 9 months ago

Bumps @actions/github from 5.1.1 to 6.0.0.

Changelog

Sourced from @​actions/github's changelog.

6.0.0

  • Support the latest Octokit in @​actions/github #1553
    • Drop support of NodeJS v14, v16
Commits


Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options
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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@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)

Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

nwtgck commented 7 months ago

@dependabot rebase

nwtgck commented 7 months ago

@github-actions run

🔨 Build & Push ```js // Get pull-req URL like "https://api.github.com/repos/nwtgck/actions-merge-preview/pulls/4" const pullReqUrl = context.payload.issue.pull_request.url; const githubUser = context.payload.repository.owner.login; const res = await fetch(pullReqUrl, { headers: [ ['Authorization', `Basic ${Buffer.from(`${githubUser}:${githubToken}`).toString('base64')}`] ] }); const resJson = await res.json(); const prUserName = resJson.head.user.login; const baseBranchName = resJson.base.ref; const branchName = resJson.head.ref; const fullRepoName = resJson.head.repo.full_name; const buildBranch = `actions-build/${prUserName}-${branchName}`; execSync(`git config --global user.email "github-actions[bot]@users.noreply.github.com"`); execSync(`git config --global user.name "github-actions[bot]"`); // (from: https://stackoverflow.com/a/23987039/2885946) execSync(`git fetch --all`); console.log(execSync(`git checkout ${baseBranchName}`).toString()); console.log(execSync(`git checkout -b ${buildBranch} ${baseBranchName}`).toString()); console.log(execSync(`git pull https://github.com/${fullRepoName}.git ${branchName}`).toString()); console.log(execSync(`npm ci`).toString()); console.log(execSync(`npm run all`).toString()); if (execSync('git status --porcelain').length === 0) { const commentBody = `\ Built file is up to date. `; // Comment the deploy URL await postComment(commentBody); } else { console.log(execSync(`git add .; git commit -m 'build'`).toString()); // Push preview branch // NOTE: Force push (should be safe because preview branch always start with "actions-build/") execSync(`git push -fu origin ${buildBranch}`); const baseRepoFullName = context.payload.repository.full_name; // Comment body const commentBody = `\ Built branch: Compare: https://github.com/${baseRepoFullName}/compare/${resJson.base.ref}...${buildBranch} `; // Comment the deploy URL await postComment(commentBody); } ```
github-actions[bot] commented 7 months ago

Built branch: https://github.com/nwtgck/actions-comment-run/tree/actions-build/nwtgck-dependabot/npm_and_yarn/actions/github-6.0.0
Compare: https://github.com/nwtgck/actions-comment-run/compare/develop...actions-build/nwtgck-dependabot/npm_and_yarn/actions/github-6.0.0

nwtgck commented 7 months ago

@dependabot rebase

nwtgck commented 7 months ago

@github-actions run

🔨 Build & Push ```js // Get pull-req URL like "https://api.github.com/repos/nwtgck/actions-merge-preview/pulls/4" const pullReqUrl = context.payload.issue.pull_request.url; const githubUser = context.payload.repository.owner.login; const res = await fetch(pullReqUrl, { headers: [ ['Authorization', `Basic ${Buffer.from(`${githubUser}:${githubToken}`).toString('base64')}`] ] }); const resJson = await res.json(); const prUserName = resJson.head.user.login; const baseBranchName = resJson.base.ref; const branchName = resJson.head.ref; const fullRepoName = resJson.head.repo.full_name; const buildBranch = `actions-build/${prUserName}-${branchName}`; execSync(`git config --global user.email "github-actions[bot]@users.noreply.github.com"`); execSync(`git config --global user.name "github-actions[bot]"`); // (from: https://stackoverflow.com/a/23987039/2885946) execSync(`git fetch --all`); console.log(execSync(`git checkout ${baseBranchName}`).toString()); console.log(execSync(`git checkout -b ${buildBranch} ${baseBranchName}`).toString()); console.log(execSync(`git pull https://github.com/${fullRepoName}.git ${branchName}`).toString()); console.log(execSync(`npm ci`).toString()); console.log(execSync(`npm run all`).toString()); if (execSync('git status --porcelain').length === 0) { const commentBody = `\ Built file is up to date. `; // Comment the deploy URL await postComment(commentBody); } else { console.log(execSync(`git add .; git commit -m 'build'`).toString()); // Push preview branch // NOTE: Force push (should be safe because preview branch always start with "actions-build/") execSync(`git push -fu origin ${buildBranch}`); const baseRepoFullName = context.payload.repository.full_name; // Comment body const commentBody = `\ Built branch: Compare: https://github.com/${baseRepoFullName}/compare/${resJson.base.ref}...${buildBranch} `; // Comment the deploy URL await postComment(commentBody); } ```
github-actions[bot] commented 7 months ago

Built branch: https://github.com/nwtgck/actions-comment-run/tree/actions-build/nwtgck-dependabot/npm_and_yarn/actions/github-6.0.0
Compare: https://github.com/nwtgck/actions-comment-run/compare/develop...actions-build/nwtgck-dependabot/npm_and_yarn/actions/github-6.0.0