首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Github复合操作找不到文件

Github复合操作找不到文件
EN

Stack Overflow用户
提问于 2022-03-12 13:30:05
回答 1查看 753关注 0票数 2

我已经创建了一个运行以下命令的操作

代码语言:javascript
运行
复制
 - name: Create Release Notes File
   env: 
    COMMITTEXT: "${{ github.event.head_commit.message }}"
   run: |
      php ./create-release-notes-file.php

该文件与create-Relase.yml位于同一个文件夹中,即..github/工作流。

当操作运行时,它将失败,并出现以下错误:

代码语言:javascript
运行
复制
Run php ./create-release-notes-file.php
Could not open input file: ./create-release-notes-file.php
Error: Process completed with exit code 1.

我找不到任何文件告诉我把文件放在其他地方。欢迎任何建议

EN

回答 1

Stack Overflow用户

发布于 2022-03-12 17:16:22

请确保在上述步骤之前克隆了回购程序(类似于行动/结帐@v3),例如:

代码语言:javascript
运行
复制
jobs:
  create-release-note:
    name: Create Release note
    runs-on: ubuntu-latest
    steps:
    - name: Checkout code
      uses: actions/checkout@v3
      with:
        fetch-depth: 0
        persist-credentials: false
        token: ${{ secrets.GH_API_TOKEN }}
    - name: Create Release Notes File
      env: 
       COMMITTEXT: "${{ github.event.head_commit.message }}"
      run: |
       php ./create-release-notes-file.php
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71450121

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档