Skip to content

Commit

Permalink
Merge pull request #45 from dhensby/pulls/updatelinks
Browse files Browse the repository at this point in the history
feat: add cumulative update installation for supported versions
  • Loading branch information
dhensby authored Aug 9, 2024
2 parents 200d7c9 + ae228ad commit 0884d50
Show file tree
Hide file tree
Showing 21 changed files with 2,204 additions and 2,645 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ jobs:
sqlserver-version: ${{ matrix.sqlserver }}
native-client-version: 11
odbc-version: 17
install-updates: true
release:
name: Release
concurrency: release
Expand Down
7 changes: 6 additions & 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 Expand Up @@ -39,6 +39,11 @@ See [action.yml](./action.yml):
# action. A maximum of 10 attempts is made.
# Default: true
wait-for-ready: true

# Attempt to install latest cumulative updates during the installation process
# (not available for all versions).
# Default: false
install-updates: false
```
<!-- end usage -->
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ inputs:
wait-for-ready:
description: 'Wait for the database to respond successfully to queries before completing the action. A maximum of 10 attempts is made.'
default: 'true'
install-updates:
description: 'Attempt to install latest cumulative updates during the installation process (not available for all versions).'
default: 'false'
outputs:
sa-password:
description: 'The SA password, this will be the same as the input, but can be useful when relying on the default value.'
Expand Down
2 changes: 1 addition & 1 deletion lib/main/index.js

Large diffs are not rendered by default.

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')
);
Loading

0 comments on commit 0884d50

Please sign in to comment.