Giter Club home page Giter Club logo

build-model-manifest-action's Introduction

build-model-manifest-action

A GitHub action that generates a package model from partials and a manifest of git commit hashes of that model.

Status

This action is in active development, all aspects subject to change and no expectation that this will work for anyone for any purpose.

Overview

This action is intended to be used to generate package repositories from models which describe package snapshots in terms of git semantics (url, branch, commit).

Two files are generated if this action is successful:

  • A model file consisting of the merged common-model-path and custom-model-path files passed as inputs, with a path specified by input generated-model-file.
  • A manifest file consisting of the model package name, the git branch, and the git commit hash for each package specified in the generated model. This file can be committed to git and is a way of detecting changes across the entire set of packages.

Package Model Schema

Manifest and package generation use a package model as a primary source. A package model is a JSON document with root objects description and packages as below:

{
  "description": {
    "title": "A one line description of what this model is for"
  },
  "packages": {
    "some-new-package-name": {
      "source": "some-package-git-url",
      "branch": "some-branch-name"
    },
    "existing-package-but-different-source": {
      "name": "some-distro-specific-name",
      "upstreamTarball": "some-url-to-tar.gz"
    },
    "an-unneeded-package": null
  }
}

Usage Example

      - id: generate-model-manifest
        uses: kgilmer/[email protected]
        with:
          common-model-path: custom.json
          custom-model-path: common.json
          generated-manifest-path: manifest.txt
          generated-model-path: /tmp/model.json

build-model-manifest-action's People

Contributors

kgilmer avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.