github / github/vscode-github-actions

Reusable workflows can be referenced locally

Open
#564 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
660
Forks
213
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

According to the blog post, [Reusable workflows can be referenced locally](https://github.blog/changelog/2022-01-25-github-actions-reusable-workflows-can-be-referenced-locally/), however VS Code extension does not support it yet, and instead complains about the lack of `@{ref}` part.

**To Reproduce**
Steps to reproduce the behavior:
1. With this simple workflow:
```yml
jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- uses: '.github/workflows/reusable-build.yml'
```
3. See error

It doesn't matter whether the reusable file `reusable-build.yml` actually exists.

**Expected behavior**

`@{ref}` part should be optional.

**Screenshots**

Image

**Extension Version**

`v0.31.0`

**Additional context**

Bonus bug: tree/**undefined** in the ctrl+click URL leads to a Not Found page.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.