Auto-update mamba #5542
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: Auto-update mamba | |
on: | |
schedule: | |
- cron: "0 */6 * * *" | |
jobs: | |
createPullRequest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
ssh-key: ${{ secrets.MINIFORGE_AUTOUPDATE_SSH_PRIVATE_KEY }} | |
- uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0 | |
with: | |
miniforge-version: latest | |
environment-file: .github/actions/autoupdate/environment.yml | |
- run: python .github/actions/autoupdate/update.py | |
- name: Create Pull Request | |
id: cpr | |
# This is the v3 tag but for security purposes we pin to the exact commit. | |
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5 | |
with: | |
commit-message: "Update mamba version" | |
title: "Update mamba version" | |
body: | | |
This PR was created by the autoupdate action as it detected that | |
the mamba version has changed and thus should be updated | |
in the configuration. | |
Due to limitations of Github Actions, you will need to close/reopen | |
the PR to get the actions running. | |
branch: autoupdate-action | |
delete-branch: true |