📜  github 操作检查事件类型 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:27.435000             🧑  作者: Mango

代码示例1
name: Foo
on:
  pull_request:
    types: ["ready_for_review", "converted_to_draft"]

jobs:
  bar:
    runs-on: ["ubuntu-latest"]
    steps:
      - run: echo "event name is:" ${{ github.event_name }} 
      - run: echo "event type is:" ${{ github.event.action }}