github / github/vscode-github-actions

Reusable workflows can be referenced locally

未关闭
#564 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
660
派生
213
PR 合并指标
30 天内没有已合并 PR

描述

**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.

贡献指南

打开贡献指南

调研方向

Start with the provided workflow reproducer and trace the VS Code extension's validation of the `uses` value. Confirm that a local `.github/workflows/reusable-build.yml` reference is accepted without an `@{ref}` suffix, and check the ctrl+click URL behavior for the reported `tree/undefined` case. Done means the error is removed for valid local references and navigation no longer produces that URL.

由索引模型根据 Issue 内容生成。

评估

技术栈
github-actions, typescript, vscode
领域
ci-cd, devtools
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。