Skip to content

Commit 7344a2c

Browse files
committed
Activate pre_commit_dev environment
1 parent 846de40 commit 7344a2c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/pre_commit_update_workflow.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,23 @@ jobs:
2828
init-shell: bash
2929
condarc: |
3030
channel_priority: strict
31-
channels:
31+
channels:
3232
- conda-forge
3333
create-args: >-
3434
python=${{ env.PYTHON_VERSION }}
3535
3636
- name: Install pre-commit and gh
3737
# permissions issue with 2.76.0
3838
run: |
39+
eval "$(micromamba shell hook --shell bash)"
40+
micromamba activate pre_commit_dev
3941
conda install -y pre-commit "gh !=2.76.0"
4042
gh --version
4143
4244
- name: Apply and commit updates
4345
run: |
46+
eval "$(micromamba shell hook --shell bash)"
47+
micromamba activate pre_commit_dev
4448
git clone https://github.com/E3SM-Project/mache.git update-pre-commit-deps
4549
cd update-pre-commit-deps
4650
# Configure git using GitHub Actions credentials.
@@ -66,6 +70,8 @@ jobs:
6670
- name: Make PR and add reviewers and labels
6771
if: ${{ env.UP_TO_DATE == 'false' }}
6872
run: |
73+
eval "$(micromamba shell hook --shell bash)"
74+
micromamba activate pre_commit_dev
6975
cd update-pre-commit-deps
7076
gh pr create \
7177
--title "Update pre-commit and its dependencies" \

0 commit comments

Comments
 (0)