Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ryohidaka/composite-action-template

Template to create composite-action for GitHub Actions.
https://github.com/ryohidaka/composite-action-template

actions composite-action github-actions template

Last synced: about 1 month ago
JSON representation

Template to create composite-action for GitHub Actions.

Awesome Lists containing this project

README

        

# composite-action-template

[![GitHub Release](https://img.shields.io/github/v/release/ryohidaka/composite-action-template)](https://github.com/ryohidaka/composite-action-template/releases/)
[![Test Action](https://github.com/ryohidaka/composite-action-template/actions/workflows/test.yml/badge.svg)](https://github.com/ryohidaka/composite-action-template/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/B0B6TVH92)

Template to create composite-action for GitHub Actions.

## Usage

```yml
on: [push]

permissions:
contents: write

jobs:
bump-uses:
runs-on: ubuntu-latest
steps:
- uses: ryohidaka/[email protected]
with:
who-to-greet: "Mona the Octocat"

- run: echo random-number "$RANDOM_NUMBER"
shell: bash
env:
RANDOM_NUMBER: ${{ steps.foo.outputs.random-number }}
```

## Inputs

| Input | Description | Required | Default |
| -------------- | ------------ | -------- | ------- |
| `who-to-greet` | Who to greet | ✅ | `World` |

## Outputs

| Output | Description | Example |
| --------------- | ------------- | ------- |
| `random-number` | Random number | `9999` |