rdeusser / action-truncate-file

Github action for truncating a file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typescript-action status

action-truncate-file

Github action for truncating a file based on size and/or characters. I guess the body for Github releases can only be 125,000 characters and if you're generating a changelog between two tags it can be higher than that. So this action will truncate it for you.

Usage

      - name: Truncate changelog
        uses: rdeusser/action-truncate-file@v1
        with:
          file: CHANGELOG.md
          character_limit: 1234
          remove_last_line: true

About

Github action for truncating a file

License:MIT License


Languages

Language:TypeScript 92.7%Language:JavaScript 7.3%