-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ka.magicV2
- Loading branch information
Showing
3,570 changed files
with
14,317 additions
and
79,785 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Update Client SDK Version | ||
|
||
env: | ||
APP_ENV: CI | ||
ALCHEMY_PRIVATE_APP_KEY: ${{ secrets.ALCHEMY_PRIVATE_APP_KEY }} | ||
ALCHEMY_PUBLIC_APP_KEY: ${{ secrets.ALCHEMY_PUBLIC_APP_KEY }} | ||
FEDERATION_POSTGRES_DB_URL: postgresql://commonwealth:edgeware@localhost/common_test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- production | ||
|
||
jobs: | ||
bump_version: | ||
name: 'Bump Api Client Version' | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
postgres: | ||
image: hicommonwealth/cw_postgres:latest | ||
env: | ||
POSTGRES_USER: commonwealth | ||
POSTGRES_DB: common_test | ||
POSTGRES_PASSWORD: edgeware | ||
# Set health checks to wait until postgres has started | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
# Maps tcp port 5432 on service container to the host | ||
- 5432:5432 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
token: ${{ secrets.SERVICE_PERSON_ACCESS_TOKEN }} | ||
|
||
- uses: ./.github/actions/setup | ||
with: | ||
node-version: 20 | ||
|
||
- name: Bump external API version if necessary | ||
run: pnpm -F commonwealth validate-external-api-version | ||
|
||
- name: Check if version was updated | ||
run: | | ||
if git diff --name-only | grep -q packages/commonwealth/server/external-api-config.json; then | ||
echo "version_updated=true" >> $GITHUB_ENV | ||
else | ||
echo "version_updated=false" >> $GITHUB_ENV | ||
fi | ||
- name: Commit and Push | ||
if: env.version_updated == 'true' | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
add: 'packages/commonwealth/server/external-api-config.json' | ||
push: true | ||
|
||
# May need to add a `repo` scoped personal access token | ||
# if we want to run checks for this new push | ||
# https://github.com/peter-evans/create-pull-request/issues/48#issuecomment-536204092 | ||
# with: | ||
# token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ | |
**/eth/artifacts | ||
**/.eslintrc.js | ||
pnpm-lock.yaml | ||
external-api-config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.