diff --git a/.github/scripts/build-osc-sdk-go.sh b/.github/scripts/build-osc-sdk-go.sh deleted file mode 100755 index 5650f76..0000000 --- a/.github/scripts/build-osc-sdk-go.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -if [ -z "$API_VERSION" ]; then - echo "API_VERSION is missing, abort" - echo "pass API_VERSION through environment variable" - exit 1 -fi - -if [ -z "$GH_TOKEN" ]; then - echo "GH_TOKEN is missing, abort." - echo "pass GH_TOKEN through environment variable" - exit 1 -fi - -ghurl="https://api.github.com" -data="{\"ref\": \"v2\", \"inputs\": {\"api_version\": \"$API_VERSION\"}" -curl \ - -X POST \ - -H "Authorization: token $GH_TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ - -d "${data}" \ - "${ghurl}/repos/outscale/osc-sdk-go/actions/workflows/build.yml/dispatches" diff --git a/.github/scripts/build-osc-sdk-js.sh b/.github/scripts/build-osc-sdk-js.sh deleted file mode 100755 index 7295afc..0000000 --- a/.github/scripts/build-osc-sdk-js.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -if [ -z "$API_VERSION" ]; then - echo "API_VERSION is missing, abort" - echo "pass API_VERSION through environment variable" - exit 1 -fi - -if [ -z "$GH_TOKEN" ]; then - echo "GH_TOKEN is missing, abort." - echo "pass GH_TOKEN through environment variable" - exit 1 -fi - -ghurl="https://api.github.com" -data="{\"ref\": \"main\", \"inputs\": {\"api_version\": \"$API_VERSION\"}" -curl \ - -X POST \ - -H "Authorization: token $GH_TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ - -d "${data}" \ - "${ghurl}/repos/outscale/osc-sdk-js/actions/workflows/build.yml/dispatches" diff --git a/.github/workflows/release-osc-api.yml b/.github/workflows/release-osc-api.yml index 1f5fb1f..8a96350 100644 --- a/.github/workflows/release-osc-api.yml +++ b/.github/workflows/release-osc-api.yml @@ -17,7 +17,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GH_TOKEN_OSC_SDK_GO }} API_VERSION: ${{ steps.release.outputs.TAG }} - run: .github/scripts/build-osc-sdk-go.sh + run: .github/scripts/build-osc-sdk.sh osc-sdk-go v2 osc-sdk-python: runs-on: ubuntu-20.04 steps: @@ -73,4 +73,4 @@ jobs: env: GH_TOKEN: ${{ secrets.GH_TOKEN_OSC_SDK_JS }} API_VERSION: ${{ steps.release.outputs.TAG }} - run: .github/scripts/build-osc-sdk-js.sh + run: .github/scripts/build-osc-sdk.sh osc-sdk-js main