fix(ci,deploy-ift): artifact v3 для Gitea, deploy без conclusion check
upload-artifact@v4 не работает на Gitea (GHES). deploy-ift skipped из-за пустого workflow_run.conclusion — проверка образа вместо if success. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -36,7 +36,7 @@ jobs:
|
||||
|
||||
- name: Upload dist for docker job
|
||||
if: github.event_name == 'push'
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: admin-ui-dist
|
||||
path: dist/
|
||||
@@ -58,7 +58,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Download dist from test job
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: admin-ui-dist
|
||||
path: dist
|
||||
|
||||
@@ -16,9 +16,8 @@ env:
|
||||
|
||||
jobs:
|
||||
deploy-ift-admin:
|
||||
if: |
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
|
||||
# Gitea: workflow_run.conclusion часто пустой → job skipped. Проверка образа ниже.
|
||||
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_run'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user