From 6e1dcd262f6ab5f437734a137be673f4dabc305a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Dan=C4=8Do?= Date: Wed, 3 Jan 2024 15:33:09 +0100 Subject: [PATCH] chore: update release workflow in order to generate types (#670) --- .github/workflows/branch-release.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/branch-release.yml b/.github/workflows/branch-release.yml index faf899e2e3..276e0caec8 100644 --- a/.github/workflows/branch-release.yml +++ b/.github/workflows/branch-release.yml @@ -46,6 +46,7 @@ jobs: GIT_BRANCH: ${{ steps.set_vars.outputs.GIT_BRANCH }} RELEASE_BRANCH_PATTERN: ${{ steps.set_vars.outputs.RELEASE_BRANCH_PATTERN }} RELEASE_TAG: ${{ steps.set_vars.outputs.RELEASE_TAG }} + GIT_BRANCH_UNFORMATTED: ${{ steps.branch-name.outputs.current_branch }} steps: - name: Get branch name id: branch-name @@ -114,9 +115,19 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} env: pr-${{ github.event.number }} + generate-types: + name: Generate types + needs: [ init, build-and-test ] + uses: ./.github/workflows/reusable-generate-types.yml + secrets: inherit + with: + branch: ${{ needs.init.outputs.GIT_BRANCH_UNFORMATTED }} + parachainDocker: ${{ github.event.inputs.parachainDocker }} + globalVersion: ${{ needs.init.outputs.GLOBAL_VERSION }} + run-e2e-test: name: Run e2e tests - needs: [init, validate-branch-name, build-and-test] + needs: [init, validate-branch-name, build-and-test, generate-types] uses: ./.github/workflows/reusable-e2e-tests.yml secrets: inherit permissions: