@@ -21,32 +21,18 @@ jobs:
2121 auto-update :
2222 runs-on : ubuntu-latest
2323 steps :
24- - uses : actions/checkout@v5
24+ - uses : actions/checkout@v4
2525
26- - name : Set up Conda Environment
27- uses : mamba-org /setup-micromamba@v2
26+ - name : Set up Python
27+ uses : actions /setup-python@v5
2828 with :
29- environment-name : pre_commit_dev
30- init-shell : bash
31- condarc : |
32- channel_priority: strict
33- channels:
34- - conda-forge
35- create-args : >-
36- python=${{ env.PYTHON_VERSION }}
29+ python-version : ${{ env.PYTHON_VERSION }}
3730
38- - name : Install pre-commit and gh
39- run : |
40- eval "$(micromamba shell hook --shell bash)"
41- micromamba activate pre_commit_dev
42- # permissions issue with gh 2.76.0
43- conda install -y pre-commit "gh !=2.76.0"
44- gh --version
31+ - name : Install pre-commit
32+ run : pip install pre-commit
4533
4634 - name : Apply and commit updates
4735 run : |
48- eval "$(micromamba shell hook --shell bash)"
49- micromamba activate pre_commit_dev
5036 git clone https://github.com/E3SM-Project/mache.git update-pre-commit-deps
5137 cd update-pre-commit-deps
5238 # Configure git using GitHub Actions credentials.
7258 - name : Make PR and add reviewers and labels
7359 if : ${{ env.UP_TO_DATE == 'false' }}
7460 run : |
75- eval "$(micromamba shell hook --shell bash)"
76- micromamba activate pre_commit_dev
7761 cd update-pre-commit-deps
7862 gh pr create \
7963 --title "Update pre-commit and its dependencies" \
0 commit comments