Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .github/workflows/generate-analysis-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,33 @@ on:
schedule:
# every monday at 04:00
- cron: "0 4 * * 1"
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true
type: choice
options:
- all
- 18.0
- 19.0

jobs:
generate-analysis18:
if: github.repository == 'OCA/OpenUpgrade' && (github.event_name == 'schedule' || github.ref_name == '18.0')
name: Generate analysis 18.0
if: |
github.repository == 'OCA/OpenUpgrade' && (github.event_name == 'schedule' || github.ref_name == '18.0') ||
github.event_name == 'workflow_dispatch' && (inputs.version == '18.0' || inputs.version == 'all')
uses: ./.github/workflows/generate-analysis.yml
with:
from_version: "17.0"
to_version: "18.0"
generate-analysis19:
name: Generate analysis 19.0
if: |
github.repository == 'OCA/OpenUpgrade' && (github.event_name == 'schedule' || github.ref_name == '19.0') ||
github.event_name == 'workflow_dispatch' && (inputs.version == '19.0' || inputs.version == 'all')
uses: ./.github/workflows/generate-analysis.yml
with:
from_version: "18.0"
to_version: "19.0"
6 changes: 5 additions & 1 deletion .github/workflows/generate-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ jobs:
pip install -r openupgrade-$FROM_VERSION/requirements.txt
# this is for l10n_eg_edi_eta which crashes without it
pip install asn1crypto
# this is for cloud_storage_google
pip install google-auth
odoo -s -c odoo-$FROM_VERSION.cfg --addons-path server-tools-$FROM_VERSION,openupgrade-$FROM_VERSION --stop-after-init
- name: Install current Odoo
run: |
Expand Down Expand Up @@ -192,7 +194,9 @@ jobs:
" > "$PR_BODY"

for module in $(
git -C $OPENUPGRADE_DIR status --short | awk '{print $2}' | awk -F/ '{print $3}' | sort -u
git -C $OPENUPGRADE_DIR status --short | awk '{print $2}' |\
grep --invert-match upgrade_general_log.txt |\
awk -F/ '{print $3}' | sort -u
); do
if grep -qE "\<$module\>.*\<((Done)|(No))" $OPENUPGRADE_DIR/docsource/modules*; then
echo Done module $module was updated
Expand Down