Skip to content

Github Actions 手动触发 workflow #79

Closed

Description

@techiall

添加一个参数 workflow_dispatch,这样子就可以指定某条分支进行构建了

例子如下:

name: Build

on:
  workflow_dispatch:
  push:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
        with:
          fetch-depth: 0

这样子就可以在 Actions 中看到选项了

image

更多配置可以查看 Github 文档

Activity

  1. Repository owner locked and limited conversation to collaborators on Jul 3, 2022
  2. converted this issue into a discussion #80 on Jul 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions