Bump peter-evans/create-pull-request from 6 to 7 (#323) #25
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: Update spreadsheet | |
on: | |
push: | |
branches: [main] | |
# to trigger update manually from the Action tab in github | |
workflow_dispatch: | |
inputs: | |
log: | |
description: update spreadsheet | |
required: false | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
update_spreadsheet: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'Remi-Gau' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: pip install --upgrade pip tox pre-commit | |
- name: Show tox config | |
run: tox c | |
- name: Update TSVs | |
run: tox run -e update | |
- name: Clean up | |
continue-on-error: true | |
run: | | |
pre-commit install | |
pre-commit run --all-files --show-diff-on-failure | |
pre-commit uninstall | |
# if there have been changes, | |
# a PR is created using the checkout branch for this workflow | |
# https://github.com/peter-evans/create-pull-request | |
- name: Create Pull-Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: Update spreadsheets | |
delete-branch: true | |
title: 'MNT: Update spreadsheets' |