Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/austenstone/action-c
- Owner: austenstone
- Created: 2022-07-01T00:40:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-07T16:06:52.000Z (over 2 years ago)
- Last Synced: 2024-10-10T21:18:44.463Z (about 1 month ago)
- Topics: actions, c, template
- Language: C
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).