forked from edwardgeorge/jq-action
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.yaml
65 lines (53 loc) · 1.6 KB
/
README.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
#
# This is the canonical configuration for the `README.md`
# Run `make readme` to rebuild the `README.md`
#
name: github-action-jq
tags:
- github-action
- jq
# License of this project
license: "MIT"
github_repo: cloudposse/github-action-jq
badges:
- name: "Latest Release"
image: "https://img.shields.io/github/release/cloudposse/github-action-jq.svg"
url: "https://github.com/cloudposse/github-action-jq/releases/latest"
- name: "Slack Community"
image: "https://slack.cloudposse.com/badge.svg"
url: "https://slack.cloudposse.com"
related: []
description: Process a input with a jq script and output result as step output
references:
- name: "github-action-atmos-matrix-unlimited"
description: "Group Atmos stacks and split each group into chunk of 256 items. Workaround of github action matrix limit"
url: "https://github.com/cloudposse/github-action-atmos-matrix-unlimited"
usage: |-
```yaml
name: Pull Request
on:
pull_request:
branches: [ 'main' ]
types: [opened, synchronize, reopened, closed, labeled, unlabeled]
jobs:
example:
outputs:
result: "${{ steps.current.outputs.output }}"
steps:
- uses: cloudposse/github-action-jq@main
id: current
with:
compact: true
input: '["test", "test2", "test3"]'
script: |-
map(select(. == "test"))
```
include:
- "docs/github-action.md"
# Contributors to this project
contributors:
- name: "Edward George"
github: "edwardgeorge"
- name: "Igor Rodionov"
github: "goruha"