Warning
This repository is archived and no longer maintained.
There is no replacement action. Read labels from the GitHub event context or
query them directly with gh issue view NUMBER --json labels. Telegram
notification filtering belongs to the caller before invoking the reusable
workflows in rubykatzen/baseline.
This action get issue labels via gh client
Here's an example of how to use this action in a workflow file:
name: Example Workflow
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
issues: read
steps:
- name: Get Labels
id: issue-labels
uses: rubycats-com/issue-get-labels-action
with:
number: ${{ github.event.issue.number }}
- uses: rubycats-com/jarvis-report-action@main
if: contains(fromJSON(issue-labels.output.labels), 'notify')
with:
report-to: ${{ secrets.JARVIS_TELEGRAM_REPORT_TO }}
token: ${{ secrets.JARVIS_TELEGRAM_TOKEN }}| Input | Required | Description |
|---|---|---|
number |
true | Issue id |
| Output | Description |
|---|---|
labels |
Labels for issue in JSON format, eg ["notify","feature"] |