Skip to content

Commit edbac01

Browse files
authored
Merge pull request #1 from xylar/fix-update-pre-commit-workflow
Fix update pre commit workflow
2 parents ad150bf + 846de40 commit edbac01

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/pre_commit_update_workflow.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
# 4. Entry: Month of the year when the process will be started [1-12]
1010
# 5. Entry: Weekday when the process will be started [0-6] [0 is Sunday]
1111
- cron: '0 8 * * 3'
12+
workflow_dispatch:
1213

1314
env:
1415
UP_TO_DATE: false
@@ -20,13 +21,23 @@ jobs:
2021
steps:
2122
- uses: actions/checkout@v4
2223

23-
- name: Set up Python
24-
uses: actions/setup-python@v5
24+
- name: Set up Conda Environment
25+
uses: mamba-org/setup-micromamba@v2
2526
with:
26-
python-version: ${{ env.PYTHON_VERSION }}
27+
environment-name: pre_commit_dev
28+
init-shell: bash
29+
condarc: |
30+
channel_priority: strict
31+
channels:
32+
- conda-forge
33+
create-args: >-
34+
python=${{ env.PYTHON_VERSION }}
2735
28-
- name: Install pre-commit
29-
run: pip install pre-commit
36+
- name: Install pre-commit and gh
37+
# permissions issue with 2.76.0
38+
run: |
39+
conda install -y pre-commit "gh !=2.76.0"
40+
gh --version
3041
3142
- name: Apply and commit updates
3243
run: |

0 commit comments

Comments
 (0)