我在 GitHub Action 中遇到了奇怪的行为workflow_call。
基本上,初始设置后一切正常,但是当我编辑工作流程文件的输入参数时,它不使用更新的值。很难用语言来解释,所以让我给你举个例子。
考虑这个基本设置:
文件:start-pipeline.yml
name: Start Pipeline
on: 
  workflow_dispatch:
    inputs:
      release_type:
        required: true
        type: choice
        options:
        - patch
        - minor
        - major
jobs:
  call-sub-workflow:
    uses: codezalot/workflow-call-issue/.github/workflows/sub-workflow.yml@main
    with:
      release_type: ${{ github.event.inputs.release_type }}
Run Code Online (Sandbox Code Playgroud)
文件:子工作流程.yml
name: Sub Workflow
on: 
  workflow_call:
    inputs:
      release_type:
        type: string
        required: true
 
jobs:
  my-job:
    runs-on: ubuntu-latest
    steps:
      - name: Print Inputs
        run: |
          echo "Release Type: ${{ github.event.inputs.release_type }}"
Run Code Online (Sandbox Code Playgroud)
然后,我使用值补丁启动管道,子工作流程会很好地打印输入:

然后,我更新工作流程文件并添加额外的输入值,如下所示:
文件:start-pipeline.yml
...
jobs:
  call-sub-workflow:
    uses: codezalot/workflow-call-issue/.github/workflows/sub-workflow.yml@main
    with:
      release_type: ${{ …Run Code Online (Sandbox Code Playgroud) 我正在尝试测试 sigma.js (v2) 的限制,以确定它是否适合我们的项目。从我在各种示例应用程序中看到的情况来看,它看起来非常有前途。不幸的是,我无法找到适当的文档。
我能找到的只是演示应用程序和一些(看起来相当过时的)Wiki 子页面(即“设置”)。
基本上,我需要了解 SigmaJS 的功能集,并且我不想通过挖掘整个源代码来做到这一点;)
我目前正在寻找什么:
当我这样做时,我可以通过哪些全局设置?
const sigmaRenderer = new Sigma(graph, container, settings);
Sigma 中实现了哪些节点和边属性?
例如,我可以像这样设置坐标、大小、类型和图像:
graph.addNode("Node-A", {
  x: 0,
  y: 0,
  size: 10,
  type: "image",
  image: "my-image.png"
})
Run Code Online (Sandbox Code Playgroud)
还有什么可能?还有哪些其他可能的类型选项?
在哪里可以找到受支持的事件侦听器的列表?返回对象的模型是什么?
ETC。
是否有我错过的官方最新文档或 wiki?