mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 12:02:10 +03:00
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:
parent
d1ab063000
commit
d4f6ffdf62
1
.github/workflows/cd-deploy-main.yaml
vendored
1
.github/workflows/cd-deploy-main.yaml
vendored
@ -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
16
.github/workflows/cd-deploy-tag.yaml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user