From 7bee6688881ee2ac75fe59dc2c9ae5a357dabf20 Mon Sep 17 00:00:00 2001 From: Michael H Date: Sun, 9 Feb 2020 15:18:02 -0500 Subject: [PATCH] [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 --- .github/workflows/lint_python.yaml | 14 ++++++++++++-- .github/workflows/publish_crowdin.yml | 10 ++++++++-- .github/workflows/tests.yml | 14 +++++++++++++- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint_python.yaml b/.github/workflows/lint_python.yaml index 7e0aa8d9d..a2556737f 100644 --- a/.github/workflows/lint_python.yaml +++ b/.github/workflows/lint_python.yaml @@ -1,12 +1,22 @@ name: Lint Python -on: [push, pull_request] +on: + pull_request: + push: + repository_dispatch: + types: + - dispatched_test + +env: + ref: ${{ github.event.client_payload.ref || '' }} jobs: lint_python: name: Lint Python runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 + with: + ref: ${{ env.ref }} - uses: actions/setup-python@v1 with: python_version: "3.8" diff --git a/.github/workflows/publish_crowdin.yml b/.github/workflows/publish_crowdin.yml index c4fa04efb..0ae074347 100644 --- a/.github/workflows/publish_crowdin.yml +++ b/.github/workflows/publish_crowdin.yml @@ -37,12 +37,18 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v2 with: - token: ${{ secrets.cogcreators_bot_repo_scoped }} + token: ${{ secrets.GITHUB_TOKEN }} commit-message: Automated Crowdin downstream - committer: Cog-Creators Bot <51291613+Cog-CreatorsBot@users.noreply.github.com> title: "[i18n] Automated Crowdin downstream" body: | This is an automated PR. Please ensure that there are no errors or invalid files are in the PR. labels: "Automated PR, Category: 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"}' \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 261b58d61..13b7fe725 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,5 +1,13 @@ name: Tests -on: [push, pull_request] +on: + pull_request: + push: + repository_dispatch: + types: + - dispatched_test + +env: + ref: ${{ github.event.client_payload.ref || '' }} jobs: tox: @@ -23,6 +31,8 @@ jobs: name: Tox - ${{ matrix.friendly_name }} steps: - uses: actions/checkout@v2 + with: + ref: ${{ env.ref }} - name: Set up Python uses: actions/setup-python@v1 with: @@ -55,6 +65,8 @@ jobs: POSTGRES_USER: postgres steps: - uses: actions/checkout@v2 + with: + ref: ${{ env.ref }} - name: Set up Python uses: actions/setup-python@v1 with: