diff --git a/.github/workflows/generate-analysis-cron.yml b/.github/workflows/generate-analysis-cron.yml index 5c3c10c00565..cd073cc22f26 100644 --- a/.github/workflows/generate-analysis-cron.yml +++ b/.github/workflows/generate-analysis-cron.yml @@ -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" diff --git a/.github/workflows/generate-analysis.yml b/.github/workflows/generate-analysis.yml index 00268e00c571..08a48d2dc00b 100644 --- a/.github/workflows/generate-analysis.yml +++ b/.github/workflows/generate-analysis.yml @@ -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: | @@ -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