Skip to content

Commit

Permalink
survey-health: switch to pull-request
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DentonGentry committed Apr 17, 2020
1 parent 6659f8c commit 7def0de
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/survey-health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,11 @@ jobs:
run: |
pip install tox
tox -e health_update
- name: Create Survey Update Commit
uses: stefanzweifel/[email protected]
- name: Create Pull Request
uses: peter-evans/[email protected]
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: [email protected]
commit_author: DrawdownBot <[email protected]>
title: Updating survey health files
author: Survey Health Cron Job <[email protected]>
team-reviewers: owners, maintainers

0 comments on commit 7def0de

Please sign in to comment.