Skip to content

The open alternative to Salesforce, designed for AI.

feat(ci): automate CI tags and pass github context (#4652)

Quentin Gd4f6ffdf6204
diff --git a/.github/workflows/cd-deploy-main.yaml b/.github/workflows/cd-deploy-main.yaml
index 6b3837f92a5..9b6217c5ab3 100644
--- a/.github/workflows/cd-deploy-main.yaml
+++ b/.github/workflows/cd-deploy-main.yaml
@@ -13,3 +13,4 @@ jobs:
token: ${{ secrets.TWENTY_INFRA_TOKEN }}
repository: twentyhq/twenty-infra
event-type: auto-deploy-main
+ client-payload: '{"github": ${{ toJson(github) }}}' # Passes the entire github context to the downstream workflow
diff --git a/.github/workflows/cd-deploy-tag.yaml b/.github/workflows/cd-deploy-tag.yaml
new file mode 100644
index 00000000000..17bee3d1a34
--- /dev/null
+++ b/.github/workflows/cd-deploy-tag.yaml
@@ -0,0 +1,16 @@
+name: CD deploy tag
+on:
+ push:
+ tags:
+ - 'v*'
+jobs:
+ deploy-tag:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Repository Dispatch
+ uses: peter-evans/repository-dispatch@v2
+ with:
+ token: ${{ secrets.TWENTY_INFRA_TOKEN }}
+ repository: twentyhq/twenty-infra
+ event-type: auto-deploy-tag
+ client-payload: '{"github": ${{ toJson(github) }}}' # Passes the entire github context to the downstream workflow