Auto-format YAML in the .github folder

This commit is contained in:
Bruno Alla 2021-11-19 22:06:56 +00:00
parent 401b4a6f23
commit 6542067138
6 changed files with 102 additions and 104 deletions

2
.github/FUNDING.yml vendored
View File

@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
liberapay: # Replace with a single Liberapay username liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username otechie: # Replace with a single Otechie username
custom: ['https://www.patreon.com/browniebroke'] custom: ["https://www.patreon.com/browniebroke"]

View File

@ -5,24 +5,23 @@ name: Django Issue Checker
on: on:
schedule: schedule:
- cron: "28 5 * * *" - cron: "28 5 * * *"
# Manual trigger # Manual trigger
workflow_dispatch: workflow_dispatch:
jobs: jobs:
issue-manager: issue-manager:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: "3.9" python-version: "3.9"
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r requirements.txt pip install -r requirements.txt
- name: Create Django Major Issue - name: Create Django Major Issue
run: python scripts/create_django_issue.py run: python scripts/create_django_issue.py
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -15,7 +15,7 @@ name: Issue Manager
on: on:
# Every day at midnight # Every day at midnight
schedule: schedule:
- cron: "0 0 * * *" - cron: "0 0 * * *"
# Manual trigger # Manual trigger
workflow_dispatch: workflow_dispatch:
@ -23,40 +23,40 @@ jobs:
issue-manager: issue-manager:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: tiangolo/issue-manager@0.4.0 - uses: tiangolo/issue-manager@0.4.0
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
config: > config: >
{ {
"answered": { "answered": {
"delay": 864000, "delay": 864000,
"message": "Assuming the original issue was solved, it will be automatically closed now.", "message": "Assuming the original issue was solved, it will be automatically closed now.",
"users": [ "users": [
"pydanny", "pydanny",
"audreyr", "audreyr",
"luzfcb", "luzfcb",
"theskumar", "theskumar",
"jayfk", "jayfk",
"burhan", "burhan",
"webyneter", "webyneter",
"browniebroke", "browniebroke",
"sfdye" "sfdye"
] ]
}, },
"waiting": { "waiting": {
"delay": 864000, "delay": 864000,
"message": "Automatically closing. To re-open, please provide the additional information requested.", "message": "Automatically closing. To re-open, please provide the additional information requested.",
"users": [ "users": [
"pydanny", "pydanny",
"audreyr", "audreyr",
"luzfcb", "luzfcb",
"theskumar", "theskumar",
"jayfk", "jayfk",
"burhan", "burhan",
"webyneter", "webyneter",
"browniebroke", "browniebroke",
"sfdye" "sfdye"
] ]
}
} }
}

View File

@ -1,36 +1,35 @@
# Run pre-commit autoupdate every day at midnight # Run pre-commit autoupdate every day at midnight
# and create a pull request if any changes # and create a pull request if any changes
name: Pre-commit auto-update name: Pre-commit auto-update
on: on:
schedule: schedule:
- cron: "0 0 * * *" - cron: "0 0 * * *"
workflow_dispatch: # to trigger manually workflow_dispatch: # to trigger manually
jobs: jobs:
auto-update: auto-update:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: "3.9" python-version: "3.9"
- name: Install pre-commit - name: Install pre-commit
run: pip install pre-commit run: pip install pre-commit
- name: Run pre-commit autoupdate - name: Run pre-commit autoupdate
working-directory: "{{cookiecutter.project_slug}}" working-directory: "{{cookiecutter.project_slug}}"
run: pre-commit autoupdate run: pre-commit autoupdate
- name: Create Pull Request - name: Create Pull Request
uses: peter-evans/create-pull-request@v3.11.0 uses: peter-evans/create-pull-request@v3.11.0
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pre-commit-autoupdate branch: update/pre-commit-autoupdate
title: Auto-update pre-commit hooks title: Auto-update pre-commit hooks
commit-message: Auto-update pre-commit hooks commit-message: Auto-update pre-commit hooks
body: Update versions of tools in pre-commit configs to latest version body: Update versions of tools in pre-commit configs to latest version
labels: update labels: update

View File

@ -15,21 +15,21 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: "3.9" python-version: "3.9"
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r requirements.txt pip install -r requirements.txt
- name: Set git details - name: Set git details
run: | run: |
git config --global user.name "github-actions" git config --global user.name "github-actions"
git config --global user.email "action@github.com" git config --global user.email "action@github.com"
- name: Update list - name: Update list
run: python scripts/update_changelog.py run: python scripts/update_changelog.py
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -10,21 +10,21 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: "3.9" python-version: "3.9"
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r requirements.txt pip install -r requirements.txt
- name: Update list - name: Update list
run: python scripts/update_contributors.py run: python scripts/update_contributors.py
- name: Commit changes - name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4.12.0 uses: stefanzweifel/git-auto-commit-action@v4.12.0
with: with:
commit_message: Update Contributors commit_message: Update Contributors
file_pattern: CONTRIBUTORS.md .github/contributors.json file_pattern: CONTRIBUTORS.md .github/contributors.json