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.