generate-popular-actions

command
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: MIT Imports: 16 Imported by: 0

README

This is a script for generating popular_actions.go.

It does:

  • Fetches metadata of popular actions
  • Generates the fetched data set of metadata
    • as Go source file
    • as JSONL file

Usage

Generate Go source:

go run ./scripts/generate-popular-actions ./popular_actions.go

Detect new releases on GitHub:

go run ./scripts/generate-popular-actions -d

Please see output of -help flag for more details.

The data source file

The data source of the popular actions is defined in popular_actions.json. This file contains an array of each action registry. Each registry is a JSON object containing the following keys:

Key Description Example Required?
slug GitHub repository slug "actions/checkout" Yes
tags Known release tags ["v1", "v2", "v3", "v4"] Yes
next The next release tag. Empty means new version won't be detected "v5" No
path Absolute path to the action from the repository root "/path/to/action" No
skip_inputs Skipping checking inputs of this action or not true No
skip_outputs Skipping checking outputs of this action or not true No
file_ext File extension of action metadata file. The default is "yml" "yaml" No

Alternative actions registry JSON file can be used via -r option.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL