The GitHub action that using template to generate license.
MIT License
A GitHub actions that use default template to generate license.
inputs:
path:
description: 'Set up the path of license.'
required: false
default: LICENSE
type:
description: 'Set up the type of license.'
required: false
default: MIT
year:
description: 'Set up the year when to since from of license.'
required: false
default: none
author:
description: 'Set up the author of license.'
required: false
default: ${{ github.actor }}
work:
description: 'Set up the work name of license.'
required: false
default: ${{ github.repository }}
This file is build in ./github/workflows/licenseGenerator.yml
to keep license up-to-date every month.
name: licenseGenerator
on:
schedule:
- cron: '1 1 1 * *'
jobs:
run:
name: Generate License
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Generate License
uses: yi-Xu-0100/[email protected]
with:
path: LICENSE
type: MIT
year: 2020
author: yi_Xu
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
commit-message: Update LICENSE
branch: update-license-patch
delete-branch: true
title: '[action] Update LICENSE'
body: |
Update LICENSE
- LICENSE generate with [license-generator][0]
- Auto-generated by [create-pull-request][1]
[0]: https://github.com/yi-Xu-0100/license-generator
[1]: https://github.com/peter-evans/create-pull-request
labels: |
LICENSE
automated pr
GitHub action
This file is build in ./github/dependabot.yml
to keep action up-to-date.
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'