Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/austenstone/action-c

Create a C Action
https://github.com/austenstone/action-c

actions c template

Last synced: 16 days ago
JSON representation

Create a C Action

Awesome Lists containing this project

README

        

## 🏃 Usage
[Create a workflow](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file) (eg: [`.github/workflows/run.yml`](.github/workflows/usage.yaml))

### Default Workflow
```yml
name: "Find Largest Prime Number"
on:
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: austenstone/action-c@main
with:
number: 1000
id: lpf
- run: echo "The Largest Prime Factor is ${{ steps.lpf.outputs.largest-prime-factor }}."
```
# Parameters
Various inputs/ouputs are defined in [`action.yml`](action.yml):

## ➡️ Input

| Name | Description | Default |
| --- | - | - |
| **number** | Number to find the largest prime factor of. | N/A |

## ⬅️ Output

| Name | Description |
| --- | - |
| **largest-prime-factor** | The largest prime factor of the number. |

## Further help
To get more help on the Actions see [documentation](https://docs.github.com/en/actions).