Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
octagon

GitHub Action

variantdev/mod

v0.7.3

variantdev/mod

octagon

variantdev/mod

Package manager for Makefile and Variantfile. Any set of files in Git/S3/GCS/HTTP as a reusable and parameterized module

Installation

Copy and paste the following snippet into your .yml file.

              

- name: variantdev/mod

uses: variantdev/mod-action@v0.7.3

Learn more about this action in variantdev/mod-action

Choose a version

MOD GitHub Actions

This GitHub Action runs the mod for package management.

Usage

name: Update dependencies
on:
  schedule:
  - cron: '0 0 * * *'

jobs:
  up:
    name: mod up
    runs-on: ubuntu-18.04
    steps:
    - uses: actions/checkout@v1
    - uses: variantdev/mod-action@v0.7.3
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        args: up --build --pull-request

For example, if you run mod up --build --pull-request regularly, a new PullRequest will be created when the package is updated.

Environments

  • MOD_ACTION_WORKING_DIR: The working directory where mod is run