bae705aa97
- Add NFC ePassport roadmap (ICAO 9303, eIDAS) - Add TensorFlow.js edge face detection (BlazeFace) - Add structured audit logger (GDPR-compliant) - Risk scoring support Part of KYC Apple Native UX v1.1.0
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
name: Auto Revision
|
|
|
|
on:
|
|
schedule:
|
|
# Kör varje dag kl 03:00 UTC
|
|
- cron: '0 3 * * *'
|
|
push:
|
|
branches: [main, develop]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
revision:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install pylint pytest requests
|
|
|
|
- name: Run auto revision
|
|
run: |
|
|
chmod +x scripts/auto_revision.sh
|
|
./scripts/auto_revision.sh
|
|
|
|
- name: Upload revision log
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: revision-log
|
|
path: logs/revision.log
|
|
|
|
- name: Check for issues
|
|
run: |
|
|
if grep -q "⚠️" logs/revision.log; then
|
|
echo "::warning::Issues found in revision"
|
|
cat logs/revision.log
|
|
fi
|
|
|
|
- name: Update revision log
|
|
run: |
|
|
git config --local user.email "revision@landvex.com"
|
|
git config --local user.name "Auto Revision"
|
|
git add REVISION_LOG.md logs/
|
|
git diff --quiet && git diff --staged --quiet || git commit -m "Auto revision $GITHUB_RUN_ID"
|
|
git push
|