Skip to content

Commit bf03731

Browse files
committed
test replacing absolute file path in output code block
1 parent 8e1e91d commit bf03731

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<a id="some-check"></a>
2+
## Some check
3+
4+
Example input:
5+
6+
```yaml
7+
on: push
8+
jobs:
9+
error:
10+
# This error message contains an abosolute file path
11+
uses: ./.github/workflows/not-existing-workflow.yml
12+
```
13+
14+
Output:
15+
16+
```
17+
THIS BLOCK WILL BE GENERATED
18+
```
19+
20+
[Playground](https://rhysd.github.io/actionlint/#HASH_PART_WILL_BE_GENERATED)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<a id="some-check"></a>
2+
## Some check
3+
4+
Example input:
5+
6+
```yaml
7+
on: push
8+
jobs:
9+
error:
10+
# This error message contains an abosolute file path
11+
uses: ./.github/workflows/not-existing-workflow.yml
12+
```
13+
14+
Output:
15+
16+
```
17+
test.yaml:5:11: could not read reusable workflow file for "./.github/workflows/not-existing-workflow.yml": open /path/to/repo/.github/workflows/not-existing-workflow.yml: no such file or directory [workflow-call]
18+
|
19+
5 | uses: ./.github/workflows/not-existing-workflow.yml
20+
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21+
```
22+
23+
[Playground](https://rhysd.github.io/actionlint/#eNo0yLENgCAQBdCeKW4BoGccEgQU+eY+BN3eWNi9PPQg12QxOyKDEUmq0A8ik4lBnHe5jjKjX9Bja1j0HcOmu3LUnu3f7jnbGwAA//8Mtxun)

0 commit comments

Comments
 (0)