on: workflow_dispatch: inputs: logLevel: description: 'Log level' required: true default: 'warning' tags: description: 'Test scenario tags' jobs: printInputs: runs-on: ubuntu-latest steps: - run: | echo "Log level: ${{ github.event.inputs.logLevel }}" echo "Tags: ${{ github.even...
最后,让我们创建另一个工作流程test_with_marketplace_actions.yaml来测试 MarketPlace 中此 Action 的使用情况。 use: wadexu007/aliyun-cli-action@v1.0.0声明表明我们正在利用 Marketplace 的Action。 name: Manually Triggered Workflows on: workflow_dispatch: inputs: trigger: description: 'Pass Inputs to...
使用srggrs/assign-one-project-github-action, 我们可以将新增的 Issues 或者 PR 添加到指定的 Projects 中。 - name: Assign NEW issues and NEW pull requests to project 2 uses: srggrs/assign-one-project-github-action@1.2.0 if: github.event.action == 'opened' with: project: 'https://github....
on:workflow_dispatch:inputs:logLevel:description:'Log level'required:truedefault:'warning'tags:description:'Test scenario tags'jobs:printInputs:runs-on: ubuntu-lateststeps:- run: |echo"Log level: ${{ github.event.inputs.logLevel }}"echo"Tags: ${{ github.event.inputs.tags }}" 1. 2. 3...
除了运行计划事件之外,还可以使用workflow_dispatch事件手动触发工作流。 通过此事件,可以使用 GitHub REST API 或通过选择 GitHub 上存储库中“操作”选项卡中的“运行工作流”按钮来运行工作流。使用workflow_dispatch,你可以选择要在哪个分支上运行工作流,还可以设置 GitHub 在 UI 中以窗体元素显示的可选inputs。
一个Workflow 由一个或多个 jobs 构成,含义是一次持续集成的运行,可以完成多个任务,Github任务叫step,一个step可以有多个action。 因为一个job对应一次持续集成。不同的job是不能共享数据的。上面的hexo两次ci.yaml定义的workflow都是单job的。Github默认多job是并行执行的。
Workflow dispatch inputs are specified with the same format as action inputs. For more information about the format see "Metadata syntax for GitHub Actions." on: workflow_dispatch: inputs: logLevel: description: 'Log level' required: true default: 'warning' tags: description: 'Test scenario ...
on:workflow_dispatch:inputs:logLevel:description:'Log level'required:truedefault:'warning'tags:description:'Test scenario tags' 除了workflow_dispatch之外,您還可以使用 GitHub API 來觸發稱為repository_dispatch的 Webhook 事件。 此事件可讓您針對在 GitHub 外部發生的活動觸發工作流程,基本上是向您的存...
在GitHub Action YAML文件中增加设置权限操作: name: Add to Journal on: workflow_dispatch: inputs: text: description: Add a single item to Logseq journal type: string required: true permissions: write-all # 新增设置权限步骤,以确保可以执行git push ...
on: workflow_run: workflows: ["Build"] types: [requested] branches: - 'releases/**' - '!releases/**-alpha' on.workflow_dispatch.inputs When using the workflow_dispatch event, you can optionally specify inputs that are passed to the workflow. The triggered workflow receives the inputs ...