Skip to content

Commit

Permalink
Creating a PR should now work
Browse files Browse the repository at this point in the history
  • Loading branch information
polpielladev committed Nov 13, 2024
1 parent def7017 commit df2d978
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/sync_asc_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ concurrency:

permissions:
contents: write
pull-requests: write

on:
push:
Expand Down
5 changes: 2 additions & 3 deletions check_for_updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
1 change: 0 additions & 1 deletion spec-version

This file was deleted.

0 comments on commit df2d978

Please sign in to comment.