Skip to content

Commit

Permalink
hot fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedownesdev committed Sep 6, 2023
1 parent b0c2e4b commit 71aab9e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-env-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:

- name: Deploy Script
id: clasp-deploy
if: ${{env.TEST_DEPLOYMENT_ID && (github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/test'))}}
run: clasp deploy -i "$TEST_DEPLOYMENT_ID" -d ${{github.run_number}}
if: github.ref == 'refs/heads/test'
run: clasp deploy -i "${{ secrets.TEST_DEPLOYMENT_ID }}" -d ${{github.run_number}}
env:
TEST_SCRIPT_ID: ${{ secrets.TEST_SCRIPT_ID }}
27 changes: 27 additions & 0 deletions src/server/lib/initializeApp.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { AppConfigurationType } from "../../types/schemas";

/**
* Initialize the app
*/
function initializeApp(): Object {
const deployingUserEmail = Session.getEffectiveUser().getEmail();

let newAppConfig: AppConfigurationType = {
appName: "My App",
deployingUserEmail: deployingUserEmail,
viewConfigurations: [],
dataSourceConfigurations: [],
admins: [],
};


const scriptPropertiesService = PropertiesService.getScriptProperties();
scriptPropertiesService.setProperty(
"appConfiguration",
JSON.stringify(newAppConfig)
);

let response = { success: true };

return JSON.parse(JSON.stringify(response));
}

0 comments on commit 71aab9e

Please sign in to comment.