Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/pre_commit_update_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
create-args: >-
python=${{ env.PYTHON_VERSION }}

- name: Install pre-commit and gh
- name: Install pre-commit, pre-commit-update and gh
run: |
eval "$(micromamba shell hook --shell bash)"
micromamba activate pre_commit_dev
# permissions issue with gh 2.76.0
conda install -y pre-commit "gh !=2.76.0"
conda install -y pre-commit pre-commit-update "gh !=2.76.0"
gh --version

- name: Apply and commit updates
Expand All @@ -53,7 +53,8 @@ jobs:
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git checkout -b update-pre-commit-deps
pre-commit autoupdate
# pre-commit-update doesn't try to include non-release versions
pre-commit-update
git add .
# The second command will fail if no changes were present, so we ignore it
git commit -m "Update pre-commit dependencies" || ( echo "UP_TO_DATE=true" >> "$GITHUB_ENV")
Expand Down
Loading