Skip to content

Commit 9eea8c7

Browse files
committed
basic workflows examples
1 parent 9546ec1 commit 9eea8c7

27 files changed

Lines changed: 222 additions & 0 deletions

config/CODEOWNERS

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Assign ownership of all workflows to yourself
2+
/workflows/* @HarshYadav152
3+
4+
# Own all scripts
5+
/scripts/* @HarshYadav152
6+
7+
# Own the .github workflows
8+
.github/workflows/* @HarshYadav152
9+
10+
# Own all docs
11+
/docs/* @HarshYadav152
12+
13+
# Own the whole repository (optional)
14+
* @HarshYadav152

config/dependbot.yml

Whitespace-only changes.

config/renovate.json

Whitespace-only changes.

docs/examples/common-use-cases.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Common Use Cases
2+
3+
This folder demonstrates how to structure real-world projects that consume workflows in this repo.
4+
5+
## Examples
6+
7+
- A React frontend (`examples/project-specific/react-app`)
8+
- A Python package (`examples/project-specific/python-package`)
9+
- Microservices (container-based) setup
10+
- Org-wide compliance and security automation
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Python Package Example
2+
3+
This demonstrates a Python project that uses the reusable Python CI workflow.
4+
5+
You can use it like this:
6+
7+
```yaml
8+
name: Python CI (Example Use)
9+
10+
on: [push]
11+
12+
jobs:
13+
use-python-ci:
14+
uses: your-org/automation-workflows/.github/workflows/python-ci.yml@main
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# React App Example
2+
3+
This folder simulates a basic React app setup for testing the `node-ci.yml` workflow.
4+
5+
✅ You can copy this into a new repo and add the following workflow:
6+
7+
```yaml
8+
name: Node CI (Example Use)
9+
10+
on: [push]
11+
12+
jobs:
13+
use-node-ci:
14+
uses: your-org/automation-workflows/.github/workflows/node-ci.yml@main

docs/scripts/bash/backup-db.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
echo "✅ Bash script: backing up the database..."

docs/scripts/bash/setup-env.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
echo "✅ Bash script: setting up the environment..."
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Write-Host "✅ PowerShell script: Windows setup started..."
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("✅ Python script: running data migration...")

0 commit comments

Comments
 (0)