-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull "pick" action out of clangd/clangd
- Loading branch information
0 parents
commit 3fef15e
Showing
92 changed files
with
9,627 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: 'Pick commit' | ||
description: 'Pick last successful commit from a repo' | ||
inputs: | ||
repo: | ||
description: 'Github repository e.g. llvm/llvm-project' | ||
required: true | ||
token: | ||
description: 'Github auth token' | ||
required: true | ||
outputs: | ||
sha: | ||
description: 'The SHA1 of the picked commit' | ||
runs: | ||
using: 'node12' | ||
main: 'index.js' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const core = require('@actions/core'); | ||
const last = require('last-successful-gh-commit').default; | ||
try { | ||
var parts = core.getInput('repo').split('/', 2); | ||
last({ | ||
owner: parts[0], | ||
name: parts[1], | ||
token: core.getInput('token'), | ||
}) | ||
.then(commit => core.setOutput('sha', commit.node.oid)) | ||
.catch(error => { | ||
console.error(error); | ||
core.setFailed(error.message); | ||
}); | ||
} catch (error) { | ||
console.error(error); | ||
core.setFailed(error.message); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
147 changes: 147 additions & 0 deletions
147
.github/actions/pick/node_modules/@actions/core/README.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
.github/actions/pick/node_modules/@actions/core/lib/command.d.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
79 changes: 79 additions & 0 deletions
79
.github/actions/pick/node_modules/@actions/core/lib/command.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
.github/actions/pick/node_modules/@actions/core/lib/command.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.