-
-
Notifications
You must be signed in to change notification settings - Fork 277
66 lines (57 loc) · 1.66 KB
/
mise.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Mise"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # once a day at midnight
jobs:
mise:
name: upgrade-tools
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup mise
uses: jdx/mise-action@v2
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Upgrade dependencies
run: mise upgrade --bump
- name: Get diff of .mise.toml
run: |
git diff > diff.patch
- name: Generate Diff
id: diff
run: |
cat diff.patch;
{
echo 'diff<<EOF'
cat diff.patch
echo EOF
} >> "$GITHUB_OUTPUT";
{
echo "### Diff"
echo '```diff'
cat diff.patch
echo '```'
} >> "$GITHUB_STEP_SUMMARY";
rm diff.patch
- if: ${{ steps.diff.outputs.diff != '' }}
name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: "${{ secrets.GITHUB_TOKEN }}"
title: "chore(mise): upgrade dependencies"
commit-message: "chore(mise): upgrade dependencies"
branch: "mise-upgrade-dependencies"
body: |
Upgraded dependencies found in `.mise.toml`:
```diff
${{ steps.diff.outputs.diff }}
```
> [!TIP]
> Merge this pull request and then run `mise upgrade --bump` on your workstation.