Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.14 KB

README.md

File metadata and controls

26 lines (22 loc) · 1.14 KB

Vagrant Action

The value for runs-on must either be set to macos-13 or ubuntu-latest in order to use this action.

This action allows the running of command-line programs via the bash shell of VMs provisioned with Vagrant using the run keyword. This also works with composite actions which exclusively use the run keyword (and/or call other composite actions which also do so.)

This action is currently only tested with these boxes (but will probably also work with others):

  • generic/arch

Usage

  1. Provision a VM using the specified box (with 2 CPUs & 2GB of RAM)
    - name: Provision VM
      uses: hummeltech/vagrant-action@v1
      with:
        box: generic/arch
        cpus: 2
        memory: 2048
  2. Execute a command using the run keyword
    - name: Display the contents of /etc/os-release
      run: cat /etc/os-release