Skip to content

Commit 0884d50

Browse files
authored
Merge pull request #45 from dhensby/pulls/updatelinks
feat: add cumulative update installation for supported versions
2 parents 200d7c9 + ae228ad commit 0884d50

File tree

21 files changed

+2204
-2645
lines changed

21 files changed

+2204
-2645
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ jobs:
147147
sqlserver-version: ${{ matrix.sqlserver }}
148148
native-client-version: 11
149149
odbc-version: 17
150+
install-updates: true
150151
release:
151152
name: Release
152153
concurrency: release

README.md

Lines changed: 6 additions & 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
@@ -39,6 +39,11 @@ See [action.yml](./action.yml):
3939
# action. A maximum of 10 attempts is made.
4040
# Default: true
4141
wait-for-ready: true
42+
43+
# Attempt to install latest cumulative updates during the installation process
44+
# (not available for all versions).
45+
# Default: false
46+
install-updates: false
4247
```
4348
<!-- end usage -->
4449

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ inputs:
2323
wait-for-ready:
2424
description: 'Wait for the database to respond successfully to queries before completing the action. A maximum of 10 attempts is made.'
2525
default: 'true'
26+
install-updates:
27+
description: 'Attempt to install latest cumulative updates during the installation process (not available for all versions).'
28+
default: 'false'
2629
outputs:
2730
sa-password:
2831
description: 'The SA password, this will be the same as the input, but can be useful when relying on the default value.'

lib/main/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)