-
-
Notifications
You must be signed in to change notification settings - Fork 277
58 lines (49 loc) · 1.44 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
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "mise"
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * 0" # once a week at midnight
jobs:
mise:
name: upgrade
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: pull
- name: Checkout Default Branch
uses: actions/checkout@v4
with:
ref: "${{ github.event.repository.default_branch }}"
path: default
- name: Setup mise
uses: jdx/mise-action@v2
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Install dependencies
run: mise upgrade --bump
- name: Get diff of mise.toml
run: |
diff -u pull/.mise.toml default/.mise.toml > diff.patch
- name: Generate Diff
id: diff
run: |
cat diff.patch
echo "diff<<EOF" >> $GITHUB_OUTPUT
cat diff.patch >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: "${{ secrets.GITHUB_TOKEN }}"
path: pull
title: "chore(mise): upgrade dependencies"
commit-message: "chore(mise): upgrade dependencies"
body: |
Dependency upgraded in `.mise.toml`
```diff
${{ steps.diff.outputs.diff }}
```