From 7def0de4db51beaa57ae22edb29a3e6e1153be7a Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Fri, 17 Apr 2020 08:41:30 -0700 Subject: [PATCH] survey-health: switch to pull-request We'd tried using peter-evans/create-pull-request previously, using the default github actions token, but it did not run the other pull request workflows. We switched to instead try to push to a branch and manually create the PR, but that isn't really working better. Switch back to peter-evans/create-pull-request, and give it a Personal Access Token scoped to 'repo' from the DentonGentry account. This should let it run the other pull_request workflows. --- .github/workflows/survey-health.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/survey-health.yml b/.github/workflows/survey-health.yml index 61fab99f2..9ff201da3 100644 --- a/.github/workflows/survey-health.yml +++ b/.github/workflows/survey-health.yml @@ -24,21 +24,11 @@ jobs: run: | pip install tox tox -e health_update - - name: Create Survey Update Commit - uses: stefanzweifel/git-auto-commit-action@v4.1.1 + - name: Create Pull Request + uses: peter-evans/create-pull-request@v2.7.0 with: + token: ${{ secrets.SURVEY_HEALTH }} commit_message: Updating survey health files - # Optional name of the branch the commit should be pushed to - # Required if Action is used in Workflow listening to the `pull_request` event - branch: solution-survey-cron - - # Optional glob pattern of files which should be added to the commit - file_pattern: data/health/* - - # Optional local file path to the repository - repository: . - - # Optional commit user and author settings - commit_user_name: Survey Health Cron Job - commit_user_email: drawdownbot@decarbon.earth - commit_author: DrawdownBot + title: Updating survey health files + author: Survey Health Cron Job + team-reviewers: owners, maintainers