| name | github-actions-5-reusable-workflows |
| description | Sub-skill of github-actions: 5. Reusable Workflows (+5). |
| version | 1.0.0 |
| category | operations |
| type | reference |
| scripts_exempt | true |
5. Reusable Workflows (+5)
5. Reusable Workflows
name: Reusable Python CI
on:
workflow_call:
inputs:
python-version:
description: 'Python version to use'
required: false
*See sub-skills for full details.*
```yaml
name: 'Setup Project'
description: 'Set up Python environment with dependencies and caching'
inputs:
python-version:
description: 'Python version'
required: false
default: '3.11'
*See sub-skills for full details.*
```yaml
name: Deploy
on:
push:
branches: [main]
workflow_dispatch:
inputs:
environment:
*See sub-skills for full details.*
```yaml
name: Docker Build and Push
on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]
*See sub-skills for full details.*
```yaml
name: Repository Maintenance
on:
schedule:
- cron: '0 6 * * 1'
workflow_dispatch:
*See sub-skills for full details.*
```yaml
name: PR Checks
on:
pull_request:
types: [opened, synchronize, reopened, edited]
permissions:
contents: read
*See sub-skills for full details.*