Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hankei6km/collect-labels-from-release-note

GitHub Action to collect labels from the release note
https://github.com/hankei6km/collect-labels-from-release-note

actions github github-actions

Last synced: about 1 month ago
JSON representation

GitHub Action to collect labels from the release note

Awesome Lists containing this project

README

        

# collect-labels-from-release-note

This action collects labels from the release note.

## Inputs

### `token`

**Required** The token to call GitHub API in action.

### `repository`

**Required** The name of the repository.

### `tag_name`

**Required** The name of the tag name to access the release.

## Outputs

### `labels`

labels collected from the release note.

## Example usage

```yaml
- name: Collect
id: collect
uses: hankei6km/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN}}
repository: hankei6km/collect-labels-from-release-note
tag_name: v0.2.x
- name: Contains item
run: test "${CONTAIN}" = "true"
env:
CONTAIN: ${{ contains(toJson(steps.collect.outputs.labels), 'testing') }}
```

## Licenses

MIT License

Copyright (c) 2022 hankei6km