Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
database

GitHub Action

action-commit-store

1.0.0

action-commit-store

database

action-commit-store

action using a commit comment as a key value store

Installation

Copy and paste the following snippet into your .yml file.

              

- name: action-commit-store

uses: boredland/action-commit-store@1.0.0

Learn more about this action in boredland/action-commit-store

Choose a version

commit-store

github action that stores and retrieves data inside a git comment on a git commit.

usage

store a value

- id: set
  uses: boredland/action-commit-store@master
  with:
    storage-commit-sha: 13ef52e3a407d9828741990d69dded5a2b65f563
    key: some
    value: content

update a value

- id: update
  uses: boredland/action-commit-store@master
  with:
    storage-commit-sha: 13ef52e3a407d9828741990d69dded5a2b65f563
    key: some
    value: different content

retrieve a value

- id: get
  uses: boredland/action-commit-store@master
  with:
    storage-commit-sha: 13ef52e3a407d9828741990d69dded5a2b65f563
    key: some

using the value

the action returns two values:

  • value - the content you stored
  • updated - 'true' or 'false' indicating, if the step updated the value