-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
430c4d4
commit b4dce8a
Showing
15 changed files
with
174 additions
and
145 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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. |
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
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
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
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
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
Oops, something went wrong.