---
title: "TIL: GitHub Actions $/ Self-Reference Syntax"
description: Reference actions and workflows in the same repo using $/ syntax. Sibling actions match the running commit automatically, no hardcoded versions.
canonical: https://lukeocodes.dev/til-github-actions-self-reference-syntax
type: article
locale: en_GB
published: 2026-08-11T00:00:00.000Z
modified: 2026-08-11T00:00:00.000Z
authors:
  - Luke Oliff
section: TIL
tags:
  - TIL
  - Git
  - Engineering
feed: https://lukeocodes.dev/rss.xml
search: https://lukeocodes.dev/search.json?q={query}
schema:
  - "@context": https://schema.org
    "@graph":
      - "@type": Organization
        "@id": https://ably.com/#organization
        name: Ably
        url: https://ably.com
      - "@type": WebSite
        "@id": https://lukeocodes.dev/#website
        url: https://lukeocodes.dev
        name: Luke Oliff
        alternateName: lukeocodes
        inLanguage: en
        publisher:
          "@id": https://lukeocodes.dev/authors/luke#person
        description: Personal blog and writing by Luke Oliff — developer relations, voice AI, developer experience.
        potentialAction:
          - "@type": SearchAction
            target:
              "@type": EntryPoint
              urlTemplate: https://lukeocodes.dev/blog/search?q={search_term_string}
            query-input: required name=search_term_string
      - "@type": Person
        "@id": https://lukeocodes.dev/authors/luke#person
        name: Luke Oliff
        url: https://lukeocodes.dev/authors/luke
        description: Staff engineer and Staff Tech Lead for Developer Experience at Ably. Writing about developer relations, AI, and the voice industry, from the UK.
        mainEntityOfPage: https://lukeocodes.dev/authors/luke
        givenName: Luke
        familyName: Oliff
        image: https://lukeocodes.dev/authors/luke.jpg
        jobTitle: Staff Tech Lead, Developer Experience
        worksFor:
          "@id": https://ably.com/#organization
        sameAs:
          - https://www.linkedin.com/in/lukeocodes
          - https://github.com/lukeocodes
          - https://bsky.app/profile/lukeocodes.dev
          - https://x.com/lukeocodes
          - https://hashnode.com/@lukeocodes
          - https://dev.to/lukeocodes
        knowsAbout:
          - Developer Relations
          - Developer Experience
          - Voice AI
          - Text-to-Speech
          - Answer Engine Optimisation
          - Search Engine Optimisation
          - Open Source
          - Developer Tooling
          - API Design
          - Speech-to-Text
          - Voice Agents
          - Community Building
        knowsLanguage:
          - English
        nationality: British
        alumniOf:
          - "@type": Organization
            name: The Open University
  - "@context": https://schema.org
    "@graph":
      - "@type": Organization
        "@id": https://ably.com/#organization
        name: Ably
        url: https://ably.com
      - "@type": Person
        "@id": https://lukeocodes.dev/authors/luke#person
        name: Luke Oliff
        url: https://lukeocodes.dev/authors/luke
        description: Staff engineer and Staff Tech Lead for Developer Experience at Ably. Writing about developer relations, AI, and the voice industry, from the UK.
        mainEntityOfPage: https://lukeocodes.dev/authors/luke
        givenName: Luke
        familyName: Oliff
        image: https://lukeocodes.dev/authors/luke.jpg
        jobTitle: Staff Tech Lead, Developer Experience
        worksFor:
          "@id": https://ably.com/#organization
        sameAs:
          - https://www.linkedin.com/in/lukeocodes
          - https://github.com/lukeocodes
          - https://bsky.app/profile/lukeocodes.dev
          - https://x.com/lukeocodes
          - https://hashnode.com/@lukeocodes
          - https://dev.to/lukeocodes
        knowsAbout:
          - Developer Relations
          - Developer Experience
          - Voice AI
          - Text-to-Speech
          - Answer Engine Optimisation
          - Search Engine Optimisation
          - Open Source
          - Developer Tooling
          - API Design
          - Speech-to-Text
          - Voice Agents
          - Community Building
        knowsLanguage:
          - English
        nationality: British
        alumniOf:
          - "@type": Organization
            name: The Open University
      - "@type": BlogPosting
        "@id": https://lukeocodes.dev/til-github-actions-self-reference-syntax#article
        headline: "TIL: GitHub Actions $/ Self-Reference Syntax"
        alternativeHeadline: "TIL: GitHub Actions $/ Self-Reference Syntax"
        description: Reference actions and workflows in the same repo using $/ syntax. Sibling actions match the running commit automatically, no hardcoded versions.
        datePublished: 2026-08-11T00:00:00.000Z
        dateModified: 2026-08-11T00:00:00.000Z
        url: https://lukeocodes.dev/til-github-actions-self-reference-syntax
        mainEntityOfPage: https://lukeocodes.dev/til-github-actions-self-reference-syntax
        inLanguage: en
        author:
          - "@id": https://lukeocodes.dev/authors/luke#person
        isPartOf:
          "@id": https://lukeocodes.dev/#website
        keywords: TIL, Git, Engineering
        articleSection: TIL
        abstract: "TIL Tuesday: GitHub Actions now supports $/ syntax to reference an action or reusable workflow in the same repository. No hardcoded versions, no ./ path hacks."
        speakable:
          "@type": SpeakableSpecification
          cssSelector:
            - .post-tldr
            - h1
        image: https://lukeocodes.dev/blog/til-github-actions-self-reference-syntax/hero.png
        wordCount: 380
        timeRequired: PT2M
        publisher:
          "@id": https://ably.com/#organization
      - "@type": BreadcrumbList
        itemListElement:
          - "@type": ListItem
            position: 1
            name: Home
            item: https://lukeocodes.dev
          - "@type": ListItem
            position: 2
            name: Writing
            item: https://lukeocodes.dev/blog
          - "@type": ListItem
            position: 3
            name: "TIL: GitHub Actions $/ Self-Reference Syntax"
            item: https://lukeocodes.dev/til-github-actions-self-reference-syntax
---

[Luke Oliff.](/)

- [Blog](/blog)
- [CV](/cv)
- [Uses](/uses)
- [User manual](/user-manual)
- [Living with ADHD](/living-and-working-with-adhd)
- [RSS](/rss.xml)

[Luke Oliff · Writing](/blog)

# TIL: GitHub Actions $/ Self-Reference Syntax

Aug 2026 · [TIL](/blog/category/til) · 2 min read · [Luke Oliff](/authors/luke)

TIL Tuesday: GitHub Actions now supports `$/` syntax to reference an action or reusable workflow in the same repository. No hardcoded versions, no `./` path hacks.

```yaml
jobs:
  build:
    steps:
      - uses: $/.github/actions/build
```

That `uses:` value that starts with `$/` resolves to the workflow's own repository at the exact commit that is running. No checkout, no tag pinning. It works everywhere `./` works — steps, composite action steps, nested composition, and reusable workflow calls.

### What problem does this solve?

Before `$/`, referencing an action in your own repo meant either using `./` with a manual checkout, or hardcoding a version tag. Both have problems:

- `./` requires a full checkout step before the action runs
- Hardcoding a version means you either drift from the running commit or maintain tags by hand
- Enterprise policies that require commit SHA pinning break with `./` references

```yaml
# Before — hardcoded version that drifts
- uses: ./.github/actions/build@v1

# Before — works but needs a checkout first
- uses: ./.github/actions/build

# After — pins to the running commit automatically
- uses: $/.github/actions/build
```

With `$/`, sibling actions and workflows automatically match the ref you are already running. Internal references stay consistent even when callers pin to a full-length commit SHA.

### Where does it work?

`$/` works everywhere the workspace-relative `./` syntax works:

- Workflow steps
- Composite action steps
- Nested action composition
- Reusable workflow calls

It requires the GitHub Actions runner to be on version 2.336.0 or newer.

### FAQ

#### Is `$/` supported on github.com only or on GitHub Enterprise Server too?

As of the August 2026 changelog, `$/` is available on github.com. GHE Server availability depends on the release track.

#### Does `$/` work with reusable workflows, not just actions?

Yes. `$/` works for reusable workflows exactly the same way — `uses: $/.github/workflows/deploy.yml` resolves to the workflow in the same repo at the running commit.

#### Do I need a checkout step?

No. That's the point. `$/` resolves from the repository context, not the filesystem. You can skip the `actions/checkout` step if the only thing you need is a local action reference.

#### What runner version do I need?

GitHub Actions runner 2.336.0 or newer. Check your runner version with `./bin/Runner.Listener --version` if you run self-hosted.

[← Newer: Full-Duplex Voice AI Needs a New Architecture](/full-duplex-voice-ai-new-architecture)

[All posts](/blog) →

## Search this site

`GET https://lukeocodes.dev/search.json?q=<words>` returns matching posts as JSON, each with its page URL and its markdown URL. Add `&limit=<1-50>` for more than 10. How it works: [/blog/search](https://lukeocodes.dev/blog/search.md).

```sh
curl "https://lukeocodes.dev/search.json?q=developer+relations"
```

---

© 2026 Luke Oliff. Posts live at the root of this site.

- [GitHub](https://github.com/lukeocodes)
- [LinkedIn](https://www.linkedin.com/in/lukeocodes)
- [X](https://x.com/lukeocodes)
- [Bluesky](https://bsky.app/profile/lukeocodes.dev)
- [Email](mailto:luke@lukeoliff.com)
- [RSS](/rss.xml)

## Cookies

This site sets one analytics cookie, from Google Analytics, and only in a browser that accepts the cookie banner. A client that does not run scripts sets no cookies, so there is nothing to accept or decline here.

[Cookie policy](/cookies)
