generated from cloudposse-github-actions/typescript-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.yaml
89 lines (71 loc) · 2.3 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
#
# This is the canonical configuration for the `README.md`
# Run `make readme` to rebuild the `README.md`
#
# Name of this project
name: github-action-string-transformer
# Tags of this project
tags:
- github-action
- typescript
# Logo for this project
#logo: docs/logo.png
# License of this project
license: "APACHE2"
# Canonical GitHub repo
github_repo: cloudposse-github-actions/string-transformer
config: {}
# Badges to display
badges:
- name: "Latest Release"
image: "https://img.shields.io/github/v/release/cloudposse-github-actions/string-transformer.svg"
url: "https://github.com/cloudposse-github-actions/string-transformer/releases/latest"
- name: "Slack Community"
image: "https://slack.cloudposse.com/badge.svg"
url: "https://slack.cloudposse.com"
related: []
# Short description of this project
description: |
A helper for transforming strings in GitHub Actions
introduction: |-
This is a GitHub Action that can be used to transform strings in GitHub Actions.
references:
- name: "github-actions-workflows"
description: "Reusable workflows for different types of projects"
url: "https://github.com/cloudposse/github-actions-workflows"
- name: "example-github-action-release-workflow"
description: "Example application with complicated release workflow"
url: "https://github.com/cloudposse/example-github-action-release-workflow"
# How to use this project
usage: |
```yaml
- name: Action Lowercase
id: lowercase
uses: ./ # Uses an action in the root directory
with:
operation: 'lowercase'
input-string: 'Hello World'
- name: Action UpperCase
id: uppercase
uses: ./ # Uses an action in the root directory
with:
operation: 'uppercase'
input-string: 'Hello World'
- name: Action Kebabcase
id: kebabcase
uses: ./ # Uses an action in the root directory
with:
operation: 'kebabcase'
input-string: 'Hello World'
```
Then Fetch the result with:
```yaml
- name: Get the output
run: echo "The output was ${{ steps.lowercase.outputs.output-string }}"
```
include:
# Contributors to this project
contributors:
- name: "Benjamin Smith"
github: "Benbentwo"