Skip to content

action-prepend

Actions
A GitHub Action for easily pre-pending values, including from other files, into a target file
v0.0.11
Latest
Star (1)

action-prepend

This GitHub Action helps easily pre-pend values, including other files, into a target file.

Example

This example demonstrates using this action to pre-pend the changelog.md file with calculated output from loopwerk/tag-changelog.

- name: ✍🏼 Create Changelog Update
  id: changelog
  uses: loopwerk/tag-changelog@v1
  with:
    token: ${{ secrets.GITHUB_TOKEN }}
    config_file: .github/tag-changelog-config.js

- name: ✍🏼 Prepend Changelog
  uses: endaft/action-prepend@v0.0.7
  with:
    file_target: CHANGELOG.md
    value_in: ${{ format('{0}\n', steps.changelog.outputs.changelog) }}
    is_file: "false"

Inputs

name required description default
file_target true The path to a file to which data will be pre-pended.
value_in true The value, or file path of a value, to be pre-pended.
is_file true Whether or not to get the in_value is a file path. false

Outputs

None

action-prepend is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

A GitHub Action for easily pre-pending values, including from other files, into a target file
v0.0.11
Latest

action-prepend is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.