最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

BackStage template - type:number issue - when dispatch data to GitActions - Stack Overflow

programmeradmin2浏览0评论

I am experiencing an error while I try to execute a template which there is a type:number field.

I wrote this code:

 ...
 - permanent_deletion_time_in_days:
   title: 'Permanent Deletion Time (Days)'
   type: number
   description: 'Must be between 7 and 30.'
   default: 30  
 ...
 - id: github-action
   name: Dispatch GitHub Action for MyAsset
   action: github:actions:dispatch
   input:
     workflowId: 'myasset.yml'
     repoUrl: 'github?repo=edgeportal-asset-templates&owner=blabla'
     branchOrTagName: 'main'
     workflowInputs:
        ...
       permanent_deletion_time_in_days: "${{ parameters.permanent_deletion_time_in_days }}"
       owner: ${{ parameters.owner }}
       env: ${{ parameters.env }}
       produto: ${{ parameters.produto }}
       ...

Output error:

2025-03-23T18:34:45.910Z HttpError: Invalid value for input 'permanent_deletion_time_in_days' -
at /app/node_modules/@octokit/core/node_modules/@octokit/request/dist-node/index.js:125:2121
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)22
at async requestWithGraphqlErrorHandling (/app/node_modules/@octokit/plugin-retry/dist-node/index.js:71:20)23
at async Job.doExecute (/app/node_modules/bottleneck/light.js:405:18)

Can someone help me? How to fix it?

Regards

发布评论

评论列表(0)

  1. 暂无评论