-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.46 KB
/
Copy pathmise-update-tool.yml
File metadata and controls
51 lines (45 loc) · 1.46 KB
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
---
name: mise tool updates
on:
schedule:
- cron: '30 6 * * 1'
workflow_dispatch:
inputs:
tools:
description: Comma separated tools to upgrade. Leave empty to upgrade all local tools.
required: false
default: ''
keep:
description: Comma separated tools to exclude from the upgrade.
required: false
default: ''
permissions:
contents: read
jobs:
upgrade:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Generate GitHub token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
id: generate-token
with:
client-id: ${{ secrets.CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
permission-contents: write
permission-pull-requests: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install mise
uses: jdx/mise-action@9e7f7633ff6f6d6048a9418a68d48f288f50eb14 # v4.2.3
- name: Upgrade local mise tools
uses: jylenhof/mise-update-tool@75c0934d7e971d26eb632ca27807fae0894a81f2 # v1.0.2
with:
token: ${{ steps.generate-token.outputs.token }}
tools: ${{ inputs.tools }}
keep: ${{ inputs.keep }}
pull-request-strategy: per-tool