- scripts/upstream-sync.sh + upstream-sync-check.yml: fast-forward upstream-sync, merge upstream into maintenance/sync-upstream-<sha> from maintained-develop, build/vet/test, open PR (or Issue on conflict), warn on newer whatsmeow. Optional AUTO_MERGE_UPSTREAM repo variable; maintained-stable never touched. - docker-build.yml: publish git.jf.eng.br/jfeng/evogo:<version> and <version>-<sha7> on tag v*, startup smoke test, non-blocking Trivy scan, :latest only on explicit promote_latest. - CHANGELOG and maintenance docs updated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
54 lines
1.7 KiB
YAML
54 lines
1.7 KiB
YAML
name: Sincronizacao Diaria com o Upstream
|
|
|
|
# Incorpora o upstream oficial (evolution-foundation/evolution-go) sem perder as
|
|
# correcoes EvoGO: o merge e feito numa branch maintenance/sync-upstream-<sha>
|
|
# criada a partir de maintained-develop, testado e enviado como PR.
|
|
# Conflitos viram Issue. maintained-stable nunca e tocada.
|
|
# Ver scripts/upstream-sync.sh e docs/maintenance/UPSTREAM_SYNC.md.
|
|
|
|
on:
|
|
schedule:
|
|
# Diariamente as 04:00 UTC (01:00 BRT)
|
|
- cron: '0 4 * * *'
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: upstream-sync
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
sync:
|
|
name: Incorporar upstream e verificar whatsmeow
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout do Repositorio
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: maintained-develop
|
|
fetch-depth: 0
|
|
token: ${{ secrets.GITEA_TOKEN }}
|
|
|
|
- name: Configurar Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: Instalar Dependencias de Sistema
|
|
run: |
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -y -qq --no-install-recommends libjpeg-dev libwebp-dev
|
|
|
|
- name: Sincronizar com o upstream
|
|
env:
|
|
GITEA_URL: ${{ github.server_url }}
|
|
REPO: ${{ github.repository }}
|
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
# Defina a variavel de repositorio AUTO_MERGE_UPSTREAM=true para mesclar
|
|
# automaticamente em maintained-develop quando build e testes passarem.
|
|
AUTO_MERGE: ${{ vars.AUTO_MERGE_UPSTREAM || 'false' }}
|
|
run: |
|
|
git config user.name "EvoGO Upstream Bot"
|
|
git config user.email "[email protected]"
|
|
bash scripts/upstream-sync.sh
|