GitHub Action
Set Google Cloud Datastore Entity
v1.0.0
Latest version
Easily set an entity in Google Cloud Datastore during your GitHub Actions workflow.
- 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}}"}'
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, whilemerge
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.