Search Issues and Output as an Artifact
Searches Issues based on configured criteria and outputs the results as json per issue into an Artifact. Stacks with other actions that expect a set of Issues as an Artifact.
Building and testing
Install the dependencies
$ npm install
Build the typescript and package it for distribution
$ npm run build && npm run pack
Run the tests ✔️
$ npm run test
Usage
See action.yml For comprehensive list of options.
Basic:
name: "Search and output issues"
on:
schedule:
- cron: "0 0 * * *"
jobs:
search:
runs-on: ubuntu-latest
steps:
- uses: actions/IssueOutputAction@v1.0
with:
repotoken: ${{ secrets.GITHUB_TOKEN }}
searchquery: 'event hubs is:open'
repoOwnerAndName: 'Azure/azure-sdk-for-net'
Configure milestone filters (filter searched issues to only those associated to an open milestone with a due date in the future):
name: "Search and output issues"
on:
schedule:
- cron: "0 0 * * *"
jobs:
search:
runs-on: ubuntu-latest
steps:
- uses: actions/IssueOutputAction@v1.0
with:
repotoken: ${{ secrets.GITHUB_TOKEN }}
searchquery: 'event hubs is:open'
repoOwnerAndName: 'Azure/azure-sdk-for-net'
searchByAssociatedMilestoneState: 'open'
searchByAssociatedMilestoneDueDate: 'future'
Debugging
To see debug output from this action, you must set the secret ACTIONS_STEP_DEBUG
to true
in your repository.