我已经创建了一个运行以下命令的操作
- name: Create Release Notes File
env:
COMMITTEXT: "${{ github.event.head_commit.message }}"
run: |
php ./create-release-notes-file.php该文件与create-Relase.yml位于同一个文件夹中,即..github/工作流。
当操作运行时,它将失败,并出现以下错误:
Run php ./create-release-notes-file.php
Could not open input file: ./create-release-notes-file.php
Error: Process completed with exit code 1.我找不到任何文件告诉我把文件放在其他地方。欢迎任何建议
发布于 2022-03-12 17:16:22
请确保在上述步骤之前克隆了回购程序(类似于行动/结帐@v3),例如:
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.phphttps://stackoverflow.com/questions/71450121
复制相似问题