Skip to content
database

GitHub Action

Set Google Cloud Datastore Entity

v1.0.0 Latest version

Set Google Cloud Datastore Entity

database

Set Google Cloud Datastore Entity

Insert or update an entity in Google Cloud Datastore

Installation

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

              

- name: Set Google Cloud Datastore Entity

uses: BeeMyDesk/[email protected]

Learn more about this action in BeeMyDesk/cloud-datastore-action

Choose a version

Google Cloud Datastore Action

status

Easily set an entity in Google Cloud Datastore during your GitHub Actions workflow.

Usage

- uses: BeeMyDesk/[email protected]
  with:
    credentials: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
    project_id: ${{ secrets.GOOGLE_PROJECT_ID }}
    action: save
    entity_kind: cloud-datastore-action-test
    entity_name:  cloud-datastore-action-test-${{ matrix.action }}
    entity_data: '{"value": 42, "sha": "${{github.sha}}"}'

Parameters

  • credentials: Service account key for GCP, exported as JSON and encoded in base64. To encode a JSON file, you can do: base64 ~/credentials.json.
  • project_id: Google Cloud Project ID.
  • action: Action to perform on the entity. save will overwrite the whole entity, while merge will keep the existing properties not specified here.
  • entity_kind: Kind of entity.
  • entity_name: Name of the entity to insert/update.
  • entity_data: JSON representation of the entity data.

License

MIT License