diff --git a/.github/workflows/cd-prod.yml b/.github/workflows/cd-prod.yml index fa3bb1e..45cf80b 100644 --- a/.github/workflows/cd-prod.yml +++ b/.github/workflows/cd-prod.yml @@ -25,18 +25,19 @@ env: jobs: deploy: - if: > - github.event_name == 'workflow_dispatch' || - ( - github.event_name == 'workflow_run' && - github.event.workflow_run.conclusion == 'success' && - github.event.workflow_run.event == 'push' && - github.event.workflow_run.head_branch == 'main' - ) + if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && github.event.workflow_run.head_branch == 'main') }} runs-on: ubuntu-latest timeout-minutes: 20 steps: + - name: Debug workflow_run payload + run: | + echo "event_name=${{ github.event_name }}" + echo "workflow_run.event=${{ github.event.workflow_run.event }}" + echo "workflow_run.head_branch=${{ github.event.workflow_run.head_branch }}" + echo "workflow_run.conclusion=${{ github.event.workflow_run.conclusion }}" + echo "workflow_run.name=${{ github.event.workflow_run.name }}" + - name: Configure AWS credentials (OIDC) uses: aws-actions/configure-aws-credentials@v4 with: diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 1ad81ff..6b837e7 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -19,7 +19,7 @@ management: endpoints: web: exposure: - include: health,info + include: health,info,prometheus endpoint: health: show-details: always