Skip to content

Merge branch 'main' of https://github.com/bauer-group/CS-GitHubBackup #16

Merge branch 'main' of https://github.com/bauer-group/CS-GitHubBackup

Merge branch 'main' of https://github.com/bauer-group/CS-GitHubBackup #16

Workflow file for this run

name: 🚀 Release
on:
push:
branches: [main]
paths-ignore:
- '.github/**'
- '*.md'
- 'docs/**'
pull_request:
branches: [main]
paths:
- 'src/**'
- 'tools/**'
- 'docker-compose.yml'
- '.dockerignore'
workflow_dispatch:
inputs:
force-release:
description: 'force create release'
type: boolean
default: false
permissions:
contents: write
issues: write
pull-requests: write
jobs:
# ============================================
# Validation Jobs
# ============================================
validate-compose:
name: 🔍 Validate Docker Compose
uses: bauer-group/automation-templates/.github/workflows/modules-validate-compose.yml@main
with:
compose-files: '["docker-compose.yml"]'
env-template: |
{
"GITHUB_OWNER": "my-org",
"GITHUB_PAT": "ghp_xxxxxxxxxxxx",
"S3_ENDPOINT_URL": "https://minio.example.com",
"S3_BUCKET": "github-backups",
"S3_ACCESS_KEY": "access-key",
"S3_SECRET_KEY": "secret-key"
}
validate-scripts:
name: 🔍 Validate Shell Scripts
uses: bauer-group/automation-templates/.github/workflows/modules-validate-shellscript.yml@main
with:
scan-directory: '.'
severity: 'error'
# ============================================
# Release Job (only on main branch push)
# ============================================
release:
name: 📦 Create Semantic Release
needs: [validate-compose, validate-scripts]
if: |
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
needs.validate-compose.result == 'success' &&
needs.validate-scripts.result == 'success'
uses: bauer-group/automation-templates/.github/workflows/modules-semantic-release.yml@main
with:
target-branch: 'main'
dry-run: false
force-release: ${{ inputs.force-release || false }}
secrets: inherit