Skip to content

Commit ae228ad

Browse files
committed
docs: update usage docs to use correct major version
1 parent 42c2621 commit ae228ad

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This action installs a version of SQL Server on Windows based GitHub Action Runn
77
See [action.yml](./action.yml):
88
<!-- start usage -->
99
```yaml
10-
- uses: tediousjs/setup-sqlserver@v1
10+
- uses: tediousjs/setup-sqlserver@v2
1111
with:
1212
# Skip OS checks that will stop installation attempts preemptively.
1313
# Default: false

misc/generate-docs.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as fs from 'fs';
22
import * as os from 'os';
33
import * as path from 'path';
44
import * as yaml from 'js-yaml';
5+
import { version } from '../package.json';
56

67
/**
78
* From @actions/checkout
@@ -164,7 +165,7 @@ function updateUsage(
164165
}
165166

166167
updateUsage(
167-
'tediousjs/setup-sqlserver@v1',
168+
`tediousjs/setup-sqlserver@v${version.split('.')[0]}`,
168169
path.join(__dirname, '..', 'action.yml'),
169170
path.join(__dirname, '..', 'README.md')
170171
);

0 commit comments

Comments
 (0)