name: Scala Steward

on:
  schedule:
    - cron: "10 9-18 * * MON-FRI"
  # Provide support for manually triggering the workflow via GitHub.
  workflow_dispatch:

jobs:
  scala-steward:
    name: scala-steward
    runs-on: ubuntu-latest
    steps:
      # This is necessary to ensure that the most up-to-date version of
      # REPOSITORIES.md is used.
      - uses: actions/checkout@v2

      - name: Generate token
        id: generate-token
        uses: tibdex/github-app-token@v1
        with:
          app_id: 209942
          private_key: ${{ secrets.APP_PRIVATE_KEY }}

      - name: Launch Scala Steward
        uses: scala-steward-org/scala-steward-action@v2
        with:
          # used for authoring updates:
          github-token: ${{ steps.generate-token.outputs.token }}
          # used for listing repositories (optional, can be a different app):
          github-app-id: 209942
          github-app-key: ${{ secrets.APP_PRIVATE_KEY }}

Add our own GitHub Action for Scala Steward
Add our own GitHub Action for Scala Steward

The public instance of Scala Steward run by Frank Thomas, the creator of Scala Steward, was shutdown
in [June 2022](https://github.com/scala-steward-org/repos/issues/1029), so we need to run our own instance!

This is the GitHub App I've created for it to ran as:

https://github.com/organizations/scanamo/settings/apps/scanamo-scala-steward
