Can not find action.yml in post step, despite successful previous step

I have created a composite GitHub action and placed it in a private repository so that I can reference it in multiple projects. The private repo consists only of the action.yml file at the top level.

In another repository, I am referencing this composite action with the following yaml:

    runs-on: ubuntu-latest
      - name: Checkout slack notifer action
        uses: actions/checkout@v2
          repository: my-org/slack-notifier
          ref: main
          token: ${{ secrets.PAT_TOKEN }}
          path: ./.github/actions/slack-notifier

      - name: Notify Slack
        uses: ./.github/actions/slack-notifier
          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

When I run the action. The Notify Slack action succeeds, however, the Post Notify Slack action fails.

I am do not understand what action.yml this error is referencing because it was able to find the action.yml to run the Notify Slack step. It does successfully post to Slack.

@timlkelly did you find a solution for that? I’m running into the same issue

@SergiosKolios not yet.

I solved it, in my case it was because I was invoking checkout actions from my custom action, in your case that would be slack-notifier.

Ah, I see. Yes, I am also performing a checkout action of the project inside of the custom action.

@SergiosKolios did you solve this by removing the checkout action inside the custom action? or was there a different solution?

I fixed this by specifying the path parameter in my custom action

  using: composite
    - name: Checkout
      uses: actions/checkout@v2
        path: ${{ github.repository }}
        fetch-depth: 0

Hi @timlkelly, yes that should do the job, otherwise it’ll checkout the entire repo and do a cleanup before in the home directory of the instance. Thus it’ll fail to cleanup what was checked out before invoking the action, at least that’s how I understand it. Good luck