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:

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

      - name: Notify Slack
        uses: ./.github/actions/slack-notifier
        with:
          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

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