Skip to content

Commit

Permalink
docs: update usage docs to use correct major version
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Aug 9, 2024
1 parent 94c6bca commit 1a00a1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This action installs a version of SQL Server on Windows based GitHub Action Runn
See [action.yml](./action.yml):
<!-- start usage -->
```yaml
- uses: tediousjs/setup-sqlserver@v1
- uses: tediousjs/setup-sqlserver@v2
with:
# Skip OS checks that will stop installation attempts preemptively.
# Default: false
Expand Down
3 changes: 2 additions & 1 deletion misc/generate-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import * as yaml from 'js-yaml';
import { version } from '../package.json';

/**
* From @actions/checkout
Expand Down Expand Up @@ -164,7 +165,7 @@ function updateUsage(
}

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

0 comments on commit 1a00a1b

Please sign in to comment.