Match adguard-cidre's current template exactly (post 2026-08-23 update)
adguard-cidre switched its release changelog from a changed-files list to a commits list (with --- dividers) after the previous commit here was written from an already-stale read of that file. Also drops the glob-based smoke test (never actually part of the real template, only of nvidia-stock-bot's own drift) for an explicit per-file check matching the canonical error-handling shape, and aligns the remaining step names/commit message wording.
This commit is contained in:
+11
-9
@@ -18,23 +18,23 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Build prod image
|
- name: Build Docker image
|
||||||
run: |
|
run: |
|
||||||
docker build -t lumeex:ci . 2>&1 | tee build.log
|
docker build -t lumeex:ci . 2>&1 | tee build.log
|
||||||
if grep -q "Building wheel for" build.log; then
|
if grep -q "Building wheel for" build.log; then
|
||||||
echo "::warning::A dependency was built from source — check Python/Alpine compatibility"
|
echo "::warning::A dependency was built from source — check Python/Alpine compatibility"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Smoke test
|
- name: Smoke test (syntax check)
|
||||||
run: |
|
run: |
|
||||||
docker run --rm --entrypoint python lumeex:ci -c "
|
docker run --rm --entrypoint python lumeex:ci -c "
|
||||||
import ast, glob
|
import ast
|
||||||
ok = True
|
ok = True
|
||||||
for f in glob.glob('/app/*.py'):
|
for f in ('build.py', 'gallery.py'):
|
||||||
with open(f) as fh:
|
with open(f) as fh:
|
||||||
source = fh.read()
|
source = fh.read()
|
||||||
try:
|
try:
|
||||||
ast.parse(source, filename=f)
|
ast.parse(source)
|
||||||
except SyntaxError as e:
|
except SyntaxError as e:
|
||||||
print(f'::error::Syntax error in {f}: {e}')
|
print(f'::error::Syntax error in {f}: {e}')
|
||||||
ok = False
|
ok = False
|
||||||
@@ -99,7 +99,7 @@ jobs:
|
|||||||
git config user.name "lumeex-ci"
|
git config user.name "lumeex-ci"
|
||||||
git config user.email "[email protected]"
|
git config user.email "[email protected]"
|
||||||
git add VERSION
|
git add VERSION
|
||||||
git commit -m "chore: bump version to $NEW_VERSION [skip ci]"
|
git commit -m "Bump build version to $NEW_VERSION [skip ci]"
|
||||||
|
|
||||||
# Belt and suspenders: actions/checkout can leave its own ephemeral
|
# Belt and suspenders: actions/checkout can leave its own ephemeral
|
||||||
# credential injected as an extraheader, which would silently override
|
# credential injected as an extraheader, which would silently override
|
||||||
@@ -151,7 +151,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CHANGED_LIST=$(echo "$CHANGED" | sed 's/^/- /')
|
COMMIT_LIST=$(git log --no-merges --format='- %s' "$BASE_REF".."${{ github.sha }}")
|
||||||
|
|
||||||
REPO_URL="https://git.djeex.fr/Djeex/lumeex"
|
REPO_URL="https://git.djeex.fr/Djeex/lumeex"
|
||||||
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
|
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
|
||||||
@@ -162,15 +162,17 @@ jobs:
|
|||||||
|
|
||||||
BODY=$(cat <<EOF
|
BODY=$(cat <<EOF
|
||||||
## Changelog
|
## Changelog
|
||||||
|
---
|
||||||
|
|
||||||
### ${CATEGORY}
|
### ${CATEGORY}
|
||||||
|
---
|
||||||
${CHANGE_TITLE}
|
${CHANGE_TITLE}
|
||||||
|
|
||||||
**Source:** ${SOURCE_LINE}
|
**Source:** ${SOURCE_LINE}
|
||||||
**Image:** \`${IMAGE}:${VERSION}\`
|
**Image:** \`${IMAGE}:${VERSION}\`
|
||||||
|
|
||||||
**Changed files:**
|
**Commits:**
|
||||||
${CHANGED_LIST}
|
${COMMIT_LIST}
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user