header-comments
v1.0.5
Published
GitHub Action to add header comments to all your files
Downloads
3
Maintainers
Readme
📑 Header Comments Action
GitHub Action to add header comments to all your files
⭐ How it works
First, create a file .github/FILE_HEADER
where you can write, for example, license text to put in the file header. This Action will automatically add that at the top of each file in your repository.
This Action does not commit or push files, you can use another Action like stefanzweifel/git-auto-commit-action to commit the changes, or peter-evans/create-pull-request to create a pull request with the changes:
name: Header Comments CI
on:
push:
branches:
- main
jobs:
test:
name: Add comments
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/[email protected]
- name: Add comments to src/
uses: koj-co/header-comments
with:
directory: src
- name: Create PR with changes
uses: peter-evans/create-pull-request@v3
Options
directory
(optional)
Only files in this directory, for example src
, will get headers.