Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/watsutatsu/actions
common github workflows for this organization
https://github.com/watsutatsu/actions
action cicd
Last synced: 29 days ago
JSON representation
common github workflows for this organization
- Host: GitHub
- URL: https://github.com/watsutatsu/actions
- Owner: watsutatsu
- Created: 2024-05-18T00:29:03.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-20T22:25:58.000Z (7 months ago)
- Last Synced: 2024-10-21T00:45:31.489Z (2 months ago)
- Topics: action, cicd
- Language: GDScript
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🔧 actions
> Resuseable actions to use in other repositories## Purpose
This repository serves as an incubator for common GitHub Action workflows. The primary goal is to develop, share, and maintain reusable workflows that can be easily integrated into various projects across the organization.
> [!NOTE]
> As the structure of this repository evolves, it may become beneficial to separate each workflow into its own dedicated action repository. This approach can enhance maintainability, scalability, and clarity, making it easier to manage, test, and deploy individual workflows.## Available Workflows
- [godot-ci](.github/workflows/godot-ci.yml.md)
- [godot-export](.github/workflows/godot-export.yml.md)
- [godot-tests](.github/workflows/godot-tests.yml.md)## Creating a Reusable Workflow
Reusable workflows in GitHub Actions allow you to define a set of actions once and call them from other workflows. This can save time and ensure consistency across your projects.
### Step 1: Define the Reusable Workflow
Create a new workflow file under the directory [.github/workflows](./.github/workflows) . Let's call it `hello-world-reusable.yml`.
```yaml
# .github/workflows/hello-world-reusable.yml
name: Reusable Hello World Workflowon:
workflow_call:
inputs:
name:
description: 'The name to greet'
required: true
default: 'World'
type: stringjobs:
say_hello:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2- name: Say Hello
run: echo "Hello, ${{ inputs.name }}!"
```
### Step 2: Call the Reusable WorkflowIn another repository (or the same one), create another workflow file under `.github/workflows` and reference the reusable workflow.
```yaml
# .github/workflows/call-hello-world.yml
name: Call Reusable Hello World Workflowon:
push:
branches:
- mainjobs:
call_hello_world:
uses: your-username/your-repository/.github/workflows/hello-world-reusable.yml@main
with:
name: "GitHub Actions"```
## Refereneces
- https://github.com/features/actions
- https://docs.github.com/en/actions