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:
David Arnold 2024-11-27 00:28:15 +01:00 committed by GitHub
parent 306c935fba
commit 92fb8e5c04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View file

@ -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"

View file

@ -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