File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed
Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ name : update-rapids-update
2+
3+ on :
4+ workflow_dispatch :
5+ schedule :
6+ - cron : " 0 20 * * 1" # Run once weekly
7+
8+ permissions :
9+ pull-requests : write
10+ contents : write
11+
12+ defaults :
13+ run :
14+ shell : bash -l {0}
15+
16+ concurrency :
17+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
18+ cancel-in-progress : true
19+
20+ jobs :
21+ pre-commit-update :
22+ name : Auto-update pre-commit hooks
23+ runs-on : ubuntu-latest
24+ steps :
25+ - uses : actions/create-github-app-token@v1
26+ id : generate-token
27+ with :
28+ app-id : ${{ secrets.TOKEN_GENERATOR_APP_ID }}
29+ private-key : ${{ secrets.TOKEN_GENERATOR_APP_PRIVATE_KEY }}
30+ - uses : actions/checkout@v4
31+ - uses : conda-incubator/setup-miniconda@v3
32+ with :
33+ miniforge-variant : Miniforge3
34+ miniforge-version : latest
35+ activate-environment : dev
36+ environment-file : ops/conda_env/pre-commit.yml
37+ use-mamba : true
38+ - name : Update pre-commit hooks
39+ run : |
40+ pre-commit install
41+ pre-commit autoupdate
42+ - name : Create Pull Request
43+ uses : peter-evans/create-pull-request@v7
44+ if : github.ref == 'refs/heads/main'
45+ with :
46+ branch : create-pull-request/pre-commit-update
47+ base : main
48+ title : " [CI] Update pre-commit hooks"
49+ commit-message : " [CI] Update pre-commit hooks"
50+ token : ${{ steps.generate-token.outputs.token }}
Original file line number Diff line number Diff line change 1+ name : dev
2+ channels :
3+ - conda-forge
4+ dependencies :
5+ - python=3.10
6+ - pre-commit
You can’t perform that action at this time.
0 commit comments