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
|
- name: Upload dist for docker job
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: admin-ui-dist
|
name: admin-ui-dist
|
||||||
path: dist/
|
path: dist/
|
||||||
@@ -58,7 +58,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download dist from test job
|
- name: Download dist from test job
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: admin-ui-dist
|
name: admin-ui-dist
|
||||||
path: dist
|
path: dist
|
||||||
|
|||||||
@@ -16,9 +16,8 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-ift-admin:
|
deploy-ift-admin:
|
||||||
if: |
|
# Gitea: workflow_run.conclusion часто пустой → job skipped. Проверка образа ниже.
|
||||||
github.event_name == 'workflow_dispatch' ||
|
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_run'
|
||||||
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user