FastAPI People #3
This file contains 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: FastAPI People | |
on: | |
schedule: | |
- cron: "0 14 1 * *" | |
workflow_dispatch: | |
inputs: | |
debug_enabled: | |
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | |
required: false | |
default: false | |
jobs: | |
fastapi-people: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Ref: https://github.com/actions/runner/issues/2033 | |
- name: Fix git safe.directory in container | |
run: mkdir -p /home/runner/work/_temp/_github_home && printf "[safe]\n\tdirectory = /github/workspace" > /home/runner/work/_temp/_github_home/.gitconfig | |
# Allow debugging with tmate | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} | |
with: | |
limit-access-to-actor: true | |
token: ${{ secrets.ACTIONS_TOKEN }} | |
standard_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: ./.github/actions/people | |
with: | |
token: ${{ secrets.ACTIONS_TOKEN }} | |
standard_token: ${{ secrets.GITHUB_TOKEN }} |