Skip to content

Commit ddf331a

Browse files
committed
v2.24.1 3bc52b3
1 parent 5df0ca6 commit ddf331a

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,20 @@ If set to `warn`, simply log a message and skip the rest:
232232
platform-check-severity: warn
233233
```
234234

235+
### Outputs
236+
237+
#### msys2-location
238+
239+
The absolute path of the MSYS2 installation location. Example: `D:\a\_temp\msys64` or `C:\msys64`.
240+
241+
```yaml
242+
- uses: msys2/setup-msys2@v2
243+
id: msys2
244+
- run: echo '${{ steps.msys2.outputs.msys2-location }}'
245+
```
246+
247+
Available since v2.24.1
248+
235249
### Advanced Options
236250

237251
These options are rarely needed and shouldn't be used unless there is a good reason.
@@ -292,7 +306,7 @@ Specify an alternate location where to install MSYS2 to.
292306
* Default: `true`
293307

294308
If `true` (the default) it makes a fresh install of the latest MSYS2 installer release.
295-
If `false` it will try to re-use the [existing MSYS2 installation](https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md#msys2) which is part of the official [GitHub Actions Runner Images](https://github.com/actions/runner-images).
309+
If `false` it will try to re-use the [existing MSYS2 installation](https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md#msys2) which is part of the official [GitHub Actions Runner Images](https://github.com/actions/runner-images).
296310

297311
```yaml
298312
- uses: msys2/setup-msys2@v2

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ inputs:
4040
description: 'If caching should be used'
4141
required: false
4242
default: true
43+
outputs:
44+
msys2-location:
45+
description: 'The absolute path of the MSYS2 installation location'
4346
runs:
4447
using: 'node20'
4548
main: 'index.js'

index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)