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

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

* Update .github/workflows/cd-deploy-tag.yaml

---------

Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
Quentin G 2024-03-26 09:01:39 +01:00 committed by GitHub
parent d1ab063000
commit d4f6ffdf62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 0 deletions

View File

@ -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

16
.github/workflows/cd-deploy-tag.yaml vendored Normal file
View File

@ -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