Skip to content

Commit 2668105

Browse files
authored
Merge pull request #138 from pitmonticone/add-update-workflow
Add update workflow
2 parents a8ac375 + 5241dbf commit 2668105

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/update.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Update Dependencies
2+
3+
on:
4+
schedule: # Sets a schedule to trigger the workflow
5+
- cron: "0 8 */3 * *" # Every 3 days at 08:00 AM UTC (for more info on the cron syntax see https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule)
6+
workflow_dispatch: # Allows the workflow to be triggered manually via the GitHub interface
7+
8+
jobs:
9+
update_lean:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write # Grants permission to push changes to the repository
13+
issues: write # Grants permission to create or update issues
14+
pull-requests: write # Grants permission to create or update pull requests
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
- name: Update project
19+
uses: oliver-butterley/lean-update@v1-alpha
20+
with:
21+
on_update_succeeds: pr # Create a pull request if the update succeeds
22+
on_update_fails: issue # Create an issue if the update fails

0 commit comments

Comments
 (0)