diff --git a/.github/workflows/deploy_stage.yml b/.github/workflows/deploy_stage.yml index 9528ff4..0b7ee61 100644 --- a/.github/workflows/deploy_stage.yml +++ b/.github/workflows/deploy_stage.yml @@ -35,6 +35,13 @@ jobs: os: ${{ matrix.os }} version: 10.x.x - name: Build + env: + AIO_RUNTIME_NAMESPACE: ${{ secrets.AIO_RUNTIME_NAMESPACE_STAGE }} + uses: adobe/aio-apps-action@3.3.0 + with: + os: ${{ matrix.os }} + command: build + - name: Deploy env: AIO_RUNTIME_NAMESPACE: ${{ secrets.AIO_RUNTIME_NAMESPACE_STAGE }} AIO_RUNTIME_AUTH: ${{ secrets.AIO_RUNTIME_AUTH_STAGE }} @@ -44,7 +51,7 @@ jobs: CERT_THUMB_PRINT: ${{ secrets.CERT_THUMB_PRINT }} CLIENT_ID: ${{ secrets.CLIENT_ID }} ENABLE_PREVEW: ${{ vars.ENABLE_PREVEW }} - HELIX_ADMIN_API_KEYS: ${{ vars.HELIX_ADMIN_API_KEYS }} + HELIX_ADMIN_API_KEYS: ${{ secrets.HELIX_ADMIN_API_KEYS }} GRAYBOX_USER_GROUPS: ${{ vars.GRAYBOX_USER_GROUPS }} GROUP_CHECK_URL: ${{ vars.GROUP_CHECK_URL }} MAX_BULK_PREVIEW_CHECKS: ${{ vars.MAX_BULK_PREVIEW_CHECKS }} @@ -54,14 +61,6 @@ jobs: SPLUNK_HEC__HEC_TOKEN: ${{ secrets.SPLUNK_HEC_TOKEN_STAGE }} TENANT_ID: ${{ secrets.TENANT_ID }} uses: adobe/aio-apps-action@3.3.0 - with: - os: ${{ matrix.os }} - command: build - - name: Deploy - env: - AIO_RUNTIME_NAMESPACE: ${{ secrets.AIO_RUNTIME_NAMESPACE_STAGE }} - AIO_RUNTIME_AUTH: ${{ secrets.AIO_RUNTIME_AUTH_STAGE }} - uses: adobe/aio-apps-action@3.3.0 with: os: ${{ matrix.os }} command: deploy diff --git a/actions/graybox/promote-worker.js b/actions/graybox/promote-worker.js index 2b341da..3666f31 100644 --- a/actions/graybox/promote-worker.js +++ b/actions/graybox/promote-worker.js @@ -202,6 +202,7 @@ async function findAllGrayboxFiles({ const uri = `${baseURI}${gbFolders.shift()}:/children?$top=${MAX_CHILDREN}`; // eslint-disable-next-line no-await-in-loop const res = await fetchWithRetry(uri, options); + logger.info(`Find all Graybox files URI: ${uri} \nResponse: ${res.ok}`); if (res.ok) { // eslint-disable-next-line no-await-in-loop const json = await res.json(); diff --git a/actions/sharepoint.js b/actions/sharepoint.js index bd3b155..a3ea892 100644 --- a/actions/sharepoint.js +++ b/actions/sharepoint.js @@ -62,6 +62,7 @@ async function getAuthorizedRequestOption({ body = null, json = true, method = ' async function executeGQL(url, opts) { const options = await getAuthorizedRequestOption(opts); const res = await fetchWithRetry(url, options); + getAioLogger().info(`Executing Excel Update with URL: ${url} \n Response: ${JSON.stringify(res.status)}`); if (!res.ok) { throw new Error(`Failed to execute ${url}`); }