Easily set an entity in Google Cloud Datastore during your GitHub Actions workflow.
- uses: BeeMyDesk/cloud-datastore-action@v1.0.0
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.savewill overwrite the whole entity, whilemergewill 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.