https://github.com/dpguthrie/dbt-cloud-git-tag-action
Github Action to update a dbt Cloud environment's custom branch with the latest git tag
https://github.com/dpguthrie/dbt-cloud-git-tag-action
Last synced: 5 months ago
JSON representation
Github Action to update a dbt Cloud environment's custom branch with the latest git tag
- Host: GitHub
- URL: https://github.com/dpguthrie/dbt-cloud-git-tag-action
- Owner: dpguthrie
- License: mit
- Created: 2024-02-28T03:53:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-13T19:40:20.000Z (over 1 year ago)
- Last Synced: 2025-10-03T20:57:21.319Z (9 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git Tag
This is a Github Action that is designed to work with a git tag release strategy alongside dbt Cloud.
## Inputs
| **Name** | **Description** | Required | Default |
|---------------------------|-----------------------------------------------------------------------------------------------------------------|----------|--------------------|
| `dbt_cloud_service_token` | The service token generated from dbt Cloud. **Ensure you have the proper permissions to trigger jobs** | `True` | |
| `dbt_cloud_account_id` | This is the account ID which contains the environment you want to update with the latest git tag. | `True` | |
| `dbt_cloud_project_id` | This is the project ID corresponding to the environment linked to the project you configure this action in. | `True` | |
| `dbt_cloud_environment_id` | This is the environment ID corresponding to the environment you want to update with the latest git tag. | `True` | |
| `dbt_cloud_host` | Where your dbt Cloud is located. | `False` | `cloud.getdbt.com` |
## Example
```yaml
name: Update Prod Environment
on:
push:
tags:
- '*'
jobs:
update-environment:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: dbt Cloud Downstream CI Action
uses: dpguthrie/dbt-cloud-git-tag-action@0.3.2
with:
dbt_cloud_account_id: ${{ secrets.DBT_CLOUD_ACCOUNT_ID }}
dbt_cloud_project_id: ${{ secrets.DBT_CLOUD_PROJECT_ID }}
dbt_cloud_environment_id: ${{ secrets.DBT_CLOUD_ENVIRONMENT_ID }}
dbt_cloud_service_token: ${{ secrets.DBT_CLOUD_SERVICE_TOKEN }}
```
## License
This project is licensed under the terms of the MIT license.