[CI] Stop messing with our contributor data with automated PRs (#3534)

* CC: Kowlin

* *sigh*

* Their own docs said that was allowed in expressions...

* python linting needs it too

* Quit with the dumb

* whoops
This commit is contained in:
Michael H 2020-02-09 15:18:02 -05:00 committed by GitHub
parent 7f6418b18f
commit 7bee668888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 5 deletions

View File

@ -1,12 +1,22 @@
name: Lint Python name: Lint Python
on: [push, pull_request] on:
pull_request:
push:
repository_dispatch:
types:
- dispatched_test
env:
ref: ${{ github.event.client_payload.ref || '' }}
jobs: jobs:
lint_python: lint_python:
name: Lint Python name: Lint Python
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
with:
ref: ${{ env.ref }}
- uses: actions/setup-python@v1 - uses: actions/setup-python@v1
with: with:
python_version: "3.8" python_version: "3.8"

View File

@ -37,12 +37,18 @@ jobs:
- name: Create Pull Request - name: Create Pull Request
uses: peter-evans/create-pull-request@v2 uses: peter-evans/create-pull-request@v2
with: with:
token: ${{ secrets.cogcreators_bot_repo_scoped }} token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Automated Crowdin downstream commit-message: Automated Crowdin downstream
committer: Cog-Creators Bot <51291613+Cog-CreatorsBot@users.noreply.github.com>
title: "[i18n] Automated Crowdin downstream" title: "[i18n] Automated Crowdin downstream"
body: | body: |
This is an automated PR. This is an automated PR.
Please ensure that there are no errors or invalid files are in the PR. Please ensure that there are no errors or invalid files are in the PR.
labels: "Automated PR, Category: i18n" labels: "Automated PR, Category: i18n"
branch: "automated/i18n" branch: "automated/i18n"
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.cogcreators_bot_repo_scoped }}
repository: Cog-Creators/Red-DiscordBot
event-type: dispatched_test
client-payload: '{"ref": "automated/i18n"}'

View File

@ -1,5 +1,13 @@
name: Tests name: Tests
on: [push, pull_request] on:
pull_request:
push:
repository_dispatch:
types:
- dispatched_test
env:
ref: ${{ github.event.client_payload.ref || '' }}
jobs: jobs:
tox: tox:
@ -23,6 +31,8 @@ jobs:
name: Tox - ${{ matrix.friendly_name }} name: Tox - ${{ matrix.friendly_name }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
ref: ${{ env.ref }}
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v1 uses: actions/setup-python@v1
with: with:
@ -55,6 +65,8 @@ jobs:
POSTGRES_USER: postgres POSTGRES_USER: postgres
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
ref: ${{ env.ref }}
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v1 uses: actions/setup-python@v1
with: with: