diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 475a64ff..8d1f806a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,12 @@ on: - '**' pull_request: workflow_dispatch: + workflow_run: + workflows: + - Check requirements files + - Docker image build + types: + - completed env: IMAGE_NAME: maykinmedia/objects-api @@ -95,10 +101,10 @@ jobs: docker-image-name: ${{ needs.store-reusable-workflow-vars.outputs.image-name }} open-api-publish: + if: ${{ github.event.workflow_run.conclusion == 'success' }} uses: maykinmedia/open-api-workflows/.github/workflows/publish.yml@v1 needs: - store-reusable-workflow-vars - - open-api-ci - tests with: docker-image-name: ${{ needs.store-reusable-workflow-vars.outputs.image-name }}