Migrate tests inside Backend root directory #34
Workflow file for this run
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: Generate and save documentation of API | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
generar-y-guardar-documentacion: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout del repositorio | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
token: ${{ secrets.PAT }} | |
- name: Configurar Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
working-directory: Backend | |
run: pip install -r requirements.txt | |
- name: Run generate docs | |
working-directory: Backend/ | |
run: | | |
python generate-docs.py | |
- name: Add and commit changes | |
working-directory: Backend/ | |
run: | | |
git config --local user.email "actions@github.com" | |
git config --local user.name "GitHub Actions" | |
git add api-docs-spotify-electron.html | |
git commit -m "docs : Update API documentation" | |
- name: Pushing to the protected branch 'protected' | |
uses: CasperWA/push-protected@v2 | |
with: | |
token: ${{ secrets.PAT }} | |
branch: ${{ github.base_ref }} | |