From d4f6ffdf6204ddc12fed6bcad14d145a08751e7a Mon Sep 17 00:00:00 2001 From: Quentin G Date: Tue, 26 Mar 2024 09:01:39 +0100 Subject: [PATCH] feat(ci): automate CI tags and pass github context (#4652) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(ci): automate CI tags and pass github context * Update .github/workflows/cd-deploy-tag.yaml --------- Co-authored-by: Félix Malfait --- .github/workflows/cd-deploy-main.yaml | 1 + .github/workflows/cd-deploy-tag.yaml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .github/workflows/cd-deploy-tag.yaml diff --git a/.github/workflows/cd-deploy-main.yaml b/.github/workflows/cd-deploy-main.yaml index 6b3837f92..9b6217c5a 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 000000000..17bee3d1a --- /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