# Calls a shared deploy workflow and hands it every secret of the repository,
# then prints a summary step with all secrets in its environment.
name: Deploy

on:
  push:
    branches: [main]

permissions:
  contents: read

jobs:
  deploy:
    uses: example-org/shared-workflows/.github/workflows/deploy.yml@main
    secrets: inherit

  summary:
    runs-on: ubuntu-latest
    steps:
      - run: ./scripts/summary.sh
        env:
          ALL_SECRETS: ${{ toJSON(secrets) }}
