From c1022f1b35772a69154a6d52b3f7e9528be1a0e3 Mon Sep 17 00:00:00 2001 From: Maxence Maireaux Date: Mon, 24 Apr 2023 19:55:23 +0200 Subject: [PATCH] ci: Upgrade --- .github/workflows/main.yml | 8 ++++++++ .github/workflows/template_sdk-publish.yaml | 4 ++-- sdk/configs/python.yaml | 2 -- sdk/configs/typescript-node.yaml | 2 -- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 59f0af52d..39f4d9096 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,8 @@ jobs: NUMARY_GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }} GoReleaserBuild: + needs: + - Control if: github.event_name != 'release' name: 'GoReleaser Build' uses: ./.github/workflows/template_goreleaser-build.yaml @@ -28,6 +30,8 @@ jobs: SEGMENT_WRITE_KEY_OSS: ${{ secrets.SEGMENT_WRITE_KEY_OSS }} GoReleaserRelease: + needs: + - Control if: github.event_name == 'release' name: 'GoReleaser Release' uses: ./.github/workflows/template_goreleaser-release.yaml @@ -53,6 +57,8 @@ jobs: NUMARY_GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }} DockerRelease: + needs: + - Control if: github.event_name == 'release' uses: ./.github/workflows/template_docker.yaml with: @@ -64,6 +70,8 @@ jobs: SEGMENT_WRITE_KEY_OSS: ${{ secrets.SEGMENT_WRITE_KEY_OSS }} DockerBranch: + needs: + - Control if: github.event_name != 'release' uses: ./.github/workflows/template_docker.yaml with: diff --git a/.github/workflows/template_sdk-publish.yaml b/.github/workflows/template_sdk-publish.yaml index e15dff219..fa0742bbe 100644 --- a/.github/workflows/template_sdk-publish.yaml +++ b/.github/workflows/template_sdk-publish.yaml @@ -41,8 +41,8 @@ jobs: uses: arduino/setup-task@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Launch Generate - run: task sdk:generate VERSION=${{ inputs.VERSION }} -- ${{ matrix.sdk }} + # - name: Launch Generate + # run: task sdk:generate VERSION=${{ inputs.VERSION }} -- ${{ matrix.sdk }} - uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: Upgrade Release to ${{ inputs.VERSION }} diff --git a/sdk/configs/python.yaml b/sdk/configs/python.yaml index 72099385a..e99605b3f 100644 --- a/sdk/configs/python.yaml +++ b/sdk/configs/python.yaml @@ -8,5 +8,3 @@ additionalProperties: files: Taskfile.yml.mustache: destinationFilename: Taskfile.yml - .github/workflows/release.yml.mustache: - destinationFilename: .github/workflows/release.yml diff --git a/sdk/configs/typescript-node.yaml b/sdk/configs/typescript-node.yaml index ada3f25ae..f125a76c7 100644 --- a/sdk/configs/typescript-node.yaml +++ b/sdk/configs/typescript-node.yaml @@ -10,5 +10,3 @@ additionalProperties: files: Taskfile.yml.mustache: destinationFilename: Taskfile.yml - .github/workflows/release.yml.mustache: - destinationFilename: .github/workflows/release.yml