Skip to content

Commit

Permalink
ci: debug print env
Browse files Browse the repository at this point in the history
  • Loading branch information
octoshikari committed Dec 28, 2023
1 parent 70111a9 commit 2ea4ab6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

jobs:
publish-gpr:
test-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -18,7 +18,9 @@ jobs:
with:
node-version: 20
- run: npm ci
- run: node sync.mjs
- run: |
printenv
node sync.mjs
env:
AIDBOX_URL: ${{ vars.AIDBOX_STAGE_URL }}
AIDBOX_USER: ${{ vars.AIDBOX_STAGE_USERNAME }}
Expand Down
3 changes: 1 addition & 2 deletions sync.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function getContentTypeByExt(ext) {
function buildOperationResource(filepath) {
const [_, ...splited] = filepath.split(/[\/\._]/);
const method = splited.slice(-2)[0];
console.log(filepath);

const route = splited.slice(0, -2).map(route_path => {
if (route_path[0] === ':')
return { name: route_path.slice(1) }
Expand Down Expand Up @@ -106,7 +106,6 @@ async function getSeedImport(client) {
'/SeedImport/aidbox-ui');
return resp.data.resources;
} catch (e) {
console.log(e);
if (e.response.status === 404)
return []
else
Expand Down

0 comments on commit 2ea4ab6

Please sign in to comment.