Dependencies Between Workflows on Github Actions

前端 未结 2 1252
挽巷
挽巷 2021-01-03 21:03

I have a monorepo with two workflows:

.github/workflows/test.yml

name: test

on: [push, pull_request]

jobs:
  test-packages:
    runs-o         


        
2条回答
  •  独厮守ぢ
    2021-01-03 21:35

    Now it's possible to have dependencies between workflows on Github Actions using workflow_run.

    Using this config, the Release workflow will work when the Run Tests workflow is completed.

    name: Release
    on:
      workflow_run:
        workflows: ["Run Tests"]
        branches: [main]
        types: 
          - completed
    

提交回复
热议问题