diff --git a/.github/renovate.json b/.github/renovate.json index 73446b45..09fe57ac 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -20,19 +20,6 @@ "matchStrings": [ "# Renovate: datasource=(?.*?) depName=(?.*?) versioning=(?.*?)?\\s+GENERATOR_VERSION=\"?(?.*?)\"" ] - }, - { - "customType": "regex", - "managerFilePatterns": [ - "/(^|\\/)go\\.mod\\.mustache$/" - ], - "matchStrings": [ - "github.com\/stackitcloud\/stackit-sdk-go\/core (?.*?)\\s" - ], - "datasourceTemplate": "go", - "depNameTemplate": "github.com/stackitcloud/stackit-sdk-go", - "packageNameTemplate": "github.com/stackitcloud/stackit-sdk-go/core", - "versioningTemplate": "semver" } ] } diff --git a/.github/workflows/check-api-versions.yaml b/.github/workflows/check-api-versions.yaml deleted file mode 100644 index 485d8a75..00000000 --- a/.github/workflows/check-api-versions.yaml +++ /dev/null @@ -1,37 +0,0 @@ -name: Check API version lock - -on: - # run after PR merge - push: - branches: ["main"] - # run every night at 01:00 - schedule: - - cron: "0 1 * * *" - -env: - THRESHOLD: "10 days ago" - -jobs: - main-go: - name: "[Go] Update SDK Repo" - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Check commit date - run: | - set -eo pipefail - - THRESHOLD="10 minutes ago" - - if jq -e 'map_values(select(. != "main")) != {}' api-versions-lock.json; then - thresholdDate=$(date -Iminutes -d "${THRESHOLD}") - commitDate=$(git -P log -n 1 --format="%aI" api-versions-lock.json) - if [[ "$commitDate" < "$thresholdDate" ]]; then - echo "latest commit of api-versions-lock.json is older than ${THRESHOLD}" - exit 1 - fi - echo "api-versions-lock.json contains locked versions but is recent enough" - else - echo "no locked versions in api-versions-lock.json" - fi