Skip to content

Commit fbe2de1

Browse files
committed
feat: Update release workflow to include additional paths for pull requests and enhance validation jobs
1 parent 10b7874 commit fbe2de1

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
77
- '.github/**'
88
- '*.md'
99
- 'docs/**'
10+
pull_request:
11+
branches: [main]
12+
paths:
13+
- 'src/**'
14+
- 'tools/**'
15+
- 'docker-compose.yml'
16+
- '.dockerignore'
1017
workflow_dispatch:
1118
inputs:
1219
force-release:
@@ -20,7 +27,12 @@ permissions:
2027
pull-requests: write
2128

2229
jobs:
30+
# ============================================
31+
# Validation Jobs
32+
# ============================================
33+
2334
validate-compose:
35+
name: 🔍 Validate Docker Compose
2436
uses: bauer-group/automation-templates/.github/workflows/modules-validate-compose.yml@main
2537
with:
2638
compose-files: '["docker-compose.yml"]'
@@ -35,17 +47,23 @@ jobs:
3547
}
3648
3749
validate-scripts:
50+
name: 🔍 Validate Shell Scripts
3851
uses: bauer-group/automation-templates/.github/workflows/modules-validate-shellscript.yml@main
3952
with:
4053
scan-directory: '.'
4154
severity: 'error'
4255

56+
# ============================================
57+
# Release Job (only on main branch push)
58+
# ============================================
59+
4360
release:
61+
name: 📦 Create Semantic Release
4462
needs: [validate-compose, validate-scripts]
4563
if: |
4664
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
47-
needs.validate-compose.outputs.valid == 'true' &&
48-
needs.validate-scripts.outputs.passed == 'true'
65+
needs.validate-compose.result == 'success' &&
66+
needs.validate-scripts.result == 'success'
4967
uses: bauer-group/automation-templates/.github/workflows/modules-semantic-release.yml@main
5068
with:
5169
target-branch: 'main'

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ LABEL org.opencontainers.image.source="https://github.com/bauer-group/CS-GitHubB
7878
LABEL org.opencontainers.image.url="https://github.com/bauer-group/CS-GitHubBackup"
7979
LABEL org.opencontainers.image.documentation="https://github.com/bauer-group/CS-GitHubBackup#readme"
8080
LABEL org.opencontainers.image.description="Automated GitHub repository backup to S3-compatible storage with scheduling, incremental backups, and alerting"
81-
LABEL org.opencontainers.image.version="0.1.0"
81+
LABEL org.opencontainers.image.version="0.0.0"
8282

8383
# Runtime dependencies (git-lfs for LFS repository support)
8484
RUN apk add --no-cache \

0 commit comments

Comments
 (0)