diff --git a/.github/workflows/sync_asc_api.yml b/.github/workflows/sync_asc_api.yml index e16fa770..3e69fc1c 100644 --- a/.github/workflows/sync_asc_api.yml +++ b/.github/workflows/sync_asc_api.yml @@ -6,6 +6,7 @@ concurrency: permissions: contents: write + pull-requests: write on: push: diff --git a/check_for_updates.sh b/check_for_updates.sh index b8a39221..99efadef 100755 --- a/check_for_updates.sh +++ b/check_for_updates.sh @@ -2,10 +2,11 @@ echo "Checking for updates..." +CURRENT_VERSION=$(cat Sources/OpenAPI/app_store_connect_api.json | jq -r '.info.version') + make download NEW_VERSION=$(cat Sources/OpenAPI/app_store_connect_api.json | jq -r '.info.version') -CURRENT_VERSION=$(cat spec-version) REMOTE_BRANCH=$(git ls-remote origin refs/heads/spec-update-$NEW_VERSION) echo "Current version: $CURRENT_VERSION" @@ -16,8 +17,6 @@ if [ "$NEW_VERSION" == "$CURRENT_VERSION" ] || [ ! -z $REMOTE_BRANCH ] ; then exit 0 fi -echo $NEW_VERSION > spec-version - make generate git config --local user.name "App Store Connect Swift SDK CI" diff --git a/spec-version b/spec-version deleted file mode 100644 index 40c341bd..00000000 --- a/spec-version +++ /dev/null @@ -1 +0,0 @@ -3.6.0