Skip to content

noworrieseh/install-dmg-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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"

About

A small GitHub Action to mount a DMG volume and run an installer.

Topics

Resources

License

Stars

Watchers

Forks

Contributors