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:
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 }}
|
token: ${{ secrets.TWENTY_INFRA_TOKEN }}
|
||||||
repository: twentyhq/twenty-infra
|
repository: twentyhq/twenty-infra
|
||||||
event-type: auto-deploy-main
|
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
|
||||||
Reference in New Issue
Block a user