ci: fix migration base workflow when used downstream git ref (#28589)
* ci: fix migration base workflow when used downstream git ref * ci: temporarily redirect
This commit is contained in:
parent
306c935fba
commit
92fb8e5c04
2 changed files with 3 additions and 6 deletions
7
.github/workflows/_base-migration.yml
vendored
7
.github/workflows/_base-migration.yml
vendored
|
|
@ -53,9 +53,6 @@ jobs:
|
|||
${{ inputs.pre }}
|
||||
|
||||
- name: Download database artifact
|
||||
env:
|
||||
current-base-ref: ${{ github.base_ref || github.ref_name }}
|
||||
current-head-ref: ${{ github.head_ref || github.ref_name }}
|
||||
run: |
|
||||
eval "$(tombl -e MIGRATION_DB=tool.frappe-ci.setup.migration-db ${GITHUB_WORKSPACE}/apps/${{ github.event.repository.name }}/pyproject.toml)" || exit 0
|
||||
source ${GITHUB_WORKSPACE}/env/bin/activate
|
||||
|
|
@ -66,8 +63,8 @@ jobs:
|
|||
eval "$(tombl -e FRAPPE_DEPENDENCIES=tool.bench.frappe-dependencies ${GITHUB_WORKSPACE}/apps/${{ github.event.repository.name }}/pyproject.toml)" || true
|
||||
version="$1"
|
||||
if [ -z "$version" ]; then
|
||||
base_ref="${{ env.current-base-ref }}"
|
||||
head_ref="${{ env.current-head-ref }}"
|
||||
base_ref="${{ github.base_ref || github.ref_name }}"
|
||||
head_ref="${{ github.sha }}"
|
||||
else
|
||||
base_ref="version-$version-hotfix"
|
||||
head_ref="version-$version-hotfix"
|
||||
|
|
|
|||
2
.github/workflows/server-tests.yml
vendored
2
.github/workflows/server-tests.yml
vendored
|
|
@ -54,7 +54,7 @@ jobs:
|
|||
migrate:
|
||||
name: Migration
|
||||
needs: checkrun
|
||||
uses: frappe/frappe/.github/workflows/_base-migration.yml@develop
|
||||
uses: blaggacao/frappe/.github/workflows/_base-migration.yml@develop
|
||||
with:
|
||||
python-version: '3.10'
|
||||
node-version: 20
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue