Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/natsuneko-laboratory/get-meta-from-glob

GitHub Actions for collecting meta from glob patterns
https://github.com/natsuneko-laboratory/get-meta-from-glob

Last synced: 4 days ago
JSON representation

GitHub Actions for collecting meta from glob patterns

Awesome Lists containing this project

README

        

# @natsuneko-laboratory/get-meta-from-glob

Create Unity's meta collections from glob patterns.

## Usage

```yaml
name: "Release by Tag"

on:
push:
tags:
- v\d+\.\d+\.\d+
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true

- uses: natsuneko-laboratory/get-meta-from-glob@main
with:
includes: |
Assets/NatsunekoLaboratory/RefinedAnimationProperty/**/*.*
output: ./MetaList

- run: |
mkdir ./dist

- uses: natsuneko-laboratory/create-unitypackage@main
with:
meta: ./MetaList
output: dist/RefinedAnimationProperty.unitypackage

- uses: actions/upload-artifact@v2
with:
name: RefinedAnimationProperty.unitypackage
path: dist/RefinedAnimationProperty.unitypackage
```

## Properties

| Property | Type | Required | Description |
| ---------- | ------ | ------------------ | --------------------------------------------- |
| `includes` | string | Yes | Including glob patterns, one pattern per line |
| `excludes` | string | No (default: `""`) | Excluding glob patterns, one pattern per line |
| `root` | string | No (default: `.`) | Root directory |
| `output` | string | Yes | Output filepath |

## License

MIT by [Natsune - @6jz](https://twitter.com/6jz)