Meziantou
Read post

Accessing files from the action repository in a GitHub Composite Action

When building GitHub Composite Actions, the working directory defaults to the caller's repository, not the action's own repository. To reference files bundled with the action (like shell scripts), use the `github.action_path` context variable, which resolves to the directory where the action itself is located. A short `action.yml` example demonstrates running a script using `${{ github.action_path }}/script.sh`.

    #cicd#github-actions
Apr 20•2m read time•From meziantou.net
Post cover image
555 Impressions
Meziantou's image
Meziantou

Meziantou's resource offers insights, tutorials, and resources for software developers and IT profes...

18 Followers

•

104 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard