我正在尝试调用一个自定义github操作,该操作与调用工作流位于同一存储库中。我这样调用它
- name: test action uses: MyOrg/MyRepo/.github/actions/my_action@master with: image: localhost/test-image:latest my_secret: ${{ secrets.MY_SECRET }}
不管怎样 Unable to Resolve Action
Unable to Resolve Action
文件在那里:
ls .github/actions/my_action.yaml
这个用例的正确语法是什么?
请先签出您的回购,然后使用相对路径访问存储库中的操作,使用。点
- uses: actions/checkout@v2 # checkout - name: test action uses: ./.github/actions/my_action # Use relative path,No need to specify branch name with: image: localhost/test-image:latest my_secret: ${{ secrets.MY_SECRET }}