diff --git a/.github/workflows/deploy-manually.yml b/.github/workflows/deploy-manually.yml index d1522d5..0572495 100644 --- a/.github/workflows/deploy-manually.yml +++ b/.github/workflows/deploy-manually.yml @@ -56,6 +56,20 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + summary: + if: ${{ github.event_name == 'workflow_dispatch'}} + needs: [extract_environment, semantic_release] + runs-on: ubuntu-latest + + steps: + - name: Create summary + env: + EVENT: ${{ github.event_name }} + IMAGE_TAG: ${{ needs.semantic_release.outputs.new_release_version }} + ENV: ${{ needs.extract_environment.outputs.environment }} + BRANCH: ${GITHUB_REF#refs/heads/} + run: echo "### Deploy da branch \`$BRANCH\` no ambiente **$ENV** :rocket:" >> $GITHUB_STEP_SUMMARY + deploy: if: ${{ github.event_name == 'workflow_dispatch' || needs.semantic_release.outputs.new_release_published == 'true' }} needs: [extract_environment, semantic_release] @@ -63,14 +77,6 @@ jobs: [self-hosted, '${{ needs.extract_environment.outputs.environment }}'] steps: - - name: Printing stats - env: - EVENT: ${{ github.event_name }} - IMAGE_TAG: ${{ needs.semantic_release.outputs.new_release_version }} - ENV: ${{ needs.extract_environment.outputs.environment }} - BRANCH: ${{ needs.extract_environment.outputs.environment }} - run: echo '### Deploy da branch `${GITHUB_REF#refs/heads/}` no ambiente $ENV :rocket:' >> $GITHUB_STEP_SUMMARY - - name: Checkout uses: actions/checkout@v2 diff --git a/src/modules/catalog/catalog.controller.ts b/src/modules/catalog/catalog.controller.ts index 9f614c4..6548746 100644 --- a/src/modules/catalog/catalog.controller.ts +++ b/src/modules/catalog/catalog.controller.ts @@ -373,7 +373,7 @@ export class CatalogController { @Body('docs') docs: string, ) { const { user_id, customer_name } = user; - const [data_asset_type, id] = data_asset_id.split('-'); + const [, id] = data_asset_id.split('-'); this.logger.info(`/catalog - ON GET DATA DOCS ROUTE`, { user_id,