Expose git variables (HEAD description, branch name, and short commit hash) to your serverless services.
functions:
processEventBatch:
name: ${self:provider.stage}-${self:service}-process-event-batch
description: ${git:branch} - ${git:describe} - ${git:sha1}
plugins:
- serverless-plugin-git-variables
- If you're using serverless 1.12.x or below, use the 1.x.x version of this plugin.
- This plugin is currently broken for serverless versions between 1.13 and 1.15 (inclusive).
- If you're using serverless 1.16.x or above, use the 2.x.x version of this plugin.
- 2.0.0
- support Serverless >= 1.16.0
- 1.0.1
- list babel-runtime as a dependency
- 1.0.0
- Initial release