Publish Stale Metadata Report #2735
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Stale Metadata Report | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| gitref: | |
| description: "The git ref to check out from the repository" | |
| required: false | |
| type: string | |
| schedule: | |
| - cron: "0 * * * *" # Run every hour | |
| permissions: | |
| contents: read | |
| jobs: | |
| publish-stale-metadata-report: | |
| name: Publish Stale Metadata Report | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout Airbyte | |
| uses: actions/checkout@8edcb1bdb4e267140fa742c62e395cd74f332709 # v4.2.2 | |
| with: | |
| ref: ${{ github.event.inputs.gitref || github.ref }} | |
| - name: Set up Python | |
| uses: actions/setup-python@9322b3ca74000aeb2c01eb777b646334015ddd72 # v5.6.0 | |
| with: | |
| python-version: "3.11" | |
| check-latest: true | |
| update-environment: true | |
| - name: Install Poetry | |
| uses: snok/install-poetry@d526ede1e27960b7b181a5ac53044f552afdaa38 # v1.4.1 | |
| with: | |
| version: latest | |
| virtualenvs-create: true | |
| virtualenvs-in-project: true | |
| - name: Install metadata_service | |
| working-directory: airbyte-ci/connectors/metadata_service/lib | |
| run: poetry install | |
| - name: Run stale metadata report task | |
| env: | |
| GCS_CREDENTIALS: ${{ secrets.METADATA_SERVICE_PROD_GCS_CREDENTIALS }} | |
| SLACK_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| working-directory: airbyte-ci/connectors/metadata_service/lib | |
| shell: bash | |
| run: | | |
| poetry run metadata_service publish-stale-metadata-report prod-airbyte-cloud-connector-metadata-service |