pre-commit auto-update #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pre-commit auto-update | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
auto-update: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.ROBOT_MYMOVE_TOKEN }} | |
- name: install python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: install pre-commit | |
run: pip install pre-commit | |
- name: run pre-commit autoupdate | |
run: pre-commit autoupdate | |
- name: set up Git | |
env: | |
GITHUB_TOKEN: ${{ secrets.ROBOT_MYMOVE_TOKEN }} | |
GITHUB_ACTOR_NAME: "robot-mymove" | |
GITHUB_ACTOR_EMAIL: "[email protected]" | |
run: | | |
git config --global user.name "${GITHUB_ACTOR_NAME}" | |
git config --global user.email "${GITHUB_ACTOR_EMAIL}" | |
- name: create pull request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.ROBOT_MYMOVE_TOKEN }} | |
branch: update/pre-commit-autoupdate | |
title: update pre-commit hooks | |
commit-message: update pre-commit hooks | |
body: update pre-commit hooks | |
labels: dependencies | |
team-reviewers: Truss-InfraSec |