https://github.com/noworrieseh/install-dmg-action
A small GitHub Action to mount a DMG volume and run an installer.
https://github.com/noworrieseh/install-dmg-action
actions github-actions macos
Last synced: 2 months ago
JSON representation
A small GitHub Action to mount a DMG volume and run an installer.
- Host: GitHub
- URL: https://github.com/noworrieseh/install-dmg-action
- Owner: noworrieseh
- License: mit
- Created: 2025-08-28T12:46:00.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-28T16:00:36.000Z (10 months ago)
- Last Synced: 2025-10-07T03:59:23.267Z (9 months ago)
- Topics: actions, github-actions, macos
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Install DMG Action
This action mounts a DMG file and runs an installer. Only supported on macOS runners as it uses the hdiutil command.
## Inputs
| Name | Description | Required | Default |
| --------- | ---------------------------------------- | -------- | ------- |
| dmg | The DMG file to mount. `none` means skip | false | `none` |
| installer | pkg installer to run. `none` means skip | false | `none` |
| detach | Detach Volume | false | `true` |
## Outputs
| Name | Description |
| --------- | --------------------------- |
| directory | Directory of mounted volume |
## Example
Downloads a release DMG from another repo, mounts the DMG, and runs the installer in the image.
```
jobs:
build:
runs-on: macos-14
env:
MACFUSE_VERSION: 4.8.2
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Download macFUSE
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: macfuse/macfuse
version: tags/macfuse-${{ env.MACFUSE_VERSION }}
file: macfuse-${{ env.MACFUSE_VERSION }}.dmg
target: macfuse.dmg
- name: Install macFUSE
uses: noworrieseh/install-dmg-action@v1
with:
dmg: macfuse.dmg
installer: "Install macFUSE.pkg"
```