How to trigger a workflow inside a specific run_id?

Hello!

I have a scenario when I run a few actions to build and push a docker container image to a repo. Then another action triggers a deploy. I added a new action that only runs with workflow_dispatch.

All works fine, but the problem is that when I trigger workflow_dispatch, it runs the job I want, but it creates a new run.

Is there a way to trigger a job for a specific run_id? That run_id has already finished.

The idea here is to be able to see all jobs in a workflow, the ones triggered automatically and the ones triggered manually, in the same run.

My workflow:

name: cd
on:
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  push-docker-image:
    name: Build and Push Docker Image
    runs-on: ubuntu-latest
    if: github.event_name == 'push'
    steps:
    - name: Docker Build and Push
      uses: docker/build-push-action@v2
      with:
        context: .
        push: true

  deploy_to_stage:
    name: Deploy 
    runs-on: ubuntu-latest
    if: github.event_name == 'push'
    # GHA jobs runs in parallel except when a dependency is specified under 'needs' argument
    needs: push-docker-image
    steps:
    # Executes curl command that triggers the deployment to staging
    - name: Deploy to R2D2 in stage
      run: |
        curl something-something

  integration_test_result:
    name: Information about the integration test execution
    runs-on: ubuntu-latest
    if: github.event_name == 'workflow_dispatch'
    env:
      GITHUB_CONTEXT: ${{ toJson(github) }}
    steps:
      - name: Show Information
        run: |
          echo "This workflow run is triggered by ${{ github.event_name }} ."
          echo " *****************************************************************************"
          echo "$GITHUB_CONTEXT"
          echo " *****************************************************************************"