This commit is contained in:
Stephan 2022-01-10 13:22:35 +01:00
parent a8da58dd52
commit 14e56223cd

View File

@ -21,22 +21,22 @@ jobs:
github-token: ${{ secrets.MY_GITHUB_TOKEN_TESTREPO }}
script: |
# see https://github.com/actions/github-script
#
# github A pre-authenticated octokit/rest.js client with pagination plugins
# .rest The REST API (e.g. github.rest.issues.get(...) gets an issue)
# .request
# .paginate
# .graphql
# context An object containing the context of the workflow run
# see https://github.com/actions/toolkit/blob/main/packages/github/src/context.ts
# core A reference to the @actions/core package
# glob A reference to the @actions/glob package
# io A reference to the @actions/io package
# exec A reference to the @actions/exec package
# require A proxy wrapper around the normal Node.js require to enable requiring relative paths
# (relative to the current working directory) + requiring npm packages installed in the
# current working directory.
// see https://github.com/actions/github-script
//
// github A pre-authenticated octokit/rest.js client with pagination plugins
// .rest The REST API (e.g. github.rest.issues.get(...) gets an issue)
// .request
// .paginate
// .graphql
// context An object containing the context of the workflow run
// see https://github.com/actions/toolkit/blob/main/packages/github/src/context.ts
// core A reference to the @actions/core package
// glob A reference to the @actions/glob package
// io A reference to the @actions/io package
// exec A reference to the @actions/exec package
// require A proxy wrapper around the normal Node.js require to enable requiring relative paths
// (relative to the current working directory) + requiring npm packages installed in the
// current working directory.
const script = require('./assign-milestone.js')
script({github, context})