File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -41,18 +41,27 @@ jobs:
41
41
env :
42
42
HEROKU_API_KEY : ${{ secrets.HEROKU_API_KEY }}
43
43
API_KEY : ci-test-key
44
- # setting an $APP_NAME that will be unique even if folks choose to fork this repo --> avoids clashes.
45
- APP_NAME : mcp-${{ github.repository_owner }}-${{ github.event.repository.name }}-pr-${{ github.event.number }}
46
44
# also note that github CI doesn't have access to your app's config vars, so here we're setting the remote
47
45
# server type to streamable HTTP. Folks using SSE would need to change this line for their e2e remote integration
48
46
# tests to test SSE instead of streamable HTTP.
49
47
REMOTE_SERVER_TRANSPORT_MODULE : streamable_http_server
48
+ # $APP_NAME is set below because we need to shorten the repo owner's name, as a precaution
50
49
51
50
steps :
52
51
- uses : actions/checkout@v4
53
52
with :
54
53
fetch-depth : 0 # <-- disables shallow clone, which heroku is upset by when running git push heroku later on
55
54
55
+ # Setting a short $APP_NAME that will be unique even if folks choose to fork this repo --> avoids clashes.
56
+ # Needs to be shortened if the github repo owner has a long name (max 30 char app name heroku limit).
57
+ - name : Generate short APP_NAME
58
+ id : appname
59
+ run : |
60
+ OWNER_SHORT=${GITHUB_REPOSITORY_OWNER:0:5}
61
+ APP_NAME="${OWNER_SHORT}-${GITHUB_REPOSITORY}-${GITHUB_EVENT_NUMBER}"
62
+ echo "APP_NAME=$APP_NAME"
63
+ echo "APP_NAME=$APP_NAME" >> $GITHUB_ENV
64
+
56
65
- uses : actions/setup-python@v5
57
66
with :
58
67
python-version : " 3.12" # this should align with this repo's .python-version file
You can’t perform that action at this time.
0 commit comments