Skip to content

Commit f098829

Browse files
committed
fix: Remove automatic triggers from template-package-test.yml
- Template file should only have workflow_dispatch (manual trigger) - Removed workflow_call and push triggers - Added instructions to uncomment triggers when copying template - Prevents template from running on push events - Clarified this is a TEMPLATE file in comments
1 parent 251fa5a commit f098829

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

.github/workflows/template-package-test.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,34 @@
11
# Package Test Template
22
#
3-
# This is a template for creating new package tests. To use it:
3+
# This is a TEMPLATE file - it will not run automatically.
4+
# To use it:
45
# 1. Copy this file to test-<your-package>.yml
5-
# 2. Replace all <PACKAGE> placeholders with your package name
6-
# 3. Replace all <package> placeholders with your package slug (lowercase, matches .md filename)
6+
# 2. Replace all <PACKAGE> placeholders with your package name (e.g., "Redis")
7+
# 3. Replace all <package> placeholders with your package slug (lowercase, e.g., "redis")
78
# 4. Update the install commands for your package
89
# 5. Update the version detection command
910
# 6. Add/modify/remove test steps as needed
1011
# 7. Update package metadata in the JSON generation step
12+
# 8. Uncomment the 'push:' trigger section below (remove the workflow_dispatch if desired)
1113
#
1214
# See test-nginx.yml and test-envoy.yml for real examples.
1315

1416
name: Test <PACKAGE> on Arm64
1517

1618
on:
17-
workflow_dispatch: # Allow manual triggering
18-
workflow_call: # Allow being called by parent workflow
19-
push:
20-
branches:
21-
- main
22-
- smoke_tests
23-
paths:
24-
- 'content/opensource_packages/<package>.md'
25-
- '.github/workflows/test-<package>.yml'
19+
# This template file is for manual testing only.
20+
# When you copy this file, uncomment the push/workflow_call triggers below:
21+
workflow_dispatch:
22+
23+
# Uncomment these when creating your actual test workflow:
24+
# workflow_call:
25+
# push:
26+
# branches:
27+
# - main
28+
# - smoke_tests
29+
# paths:
30+
# - 'content/opensource_packages/<package>.md'
31+
# - '.github/workflows/test-<package>.yml'
2632

2733
jobs:
2834
test-<package>:

0 commit comments

Comments
 (0)