-
-
Notifications
You must be signed in to change notification settings - Fork 65
76 lines (63 loc) · 2.21 KB
/
update-project.yml
File metadata and controls
76 lines (63 loc) · 2.21 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
name: Update Project
on:
schedule:
- cron: '0 9 * * 1' # Weekly on Mondays at 9am UTC
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-project:
runs-on: ubuntu-latest
steps:
- name: Checkout repository.
uses: actions/checkout@v6
- name: Set up Docker Buildx.
uses: docker/setup-buildx-action@v4
- name: Run update script.
id: update
run: |
./scripts/update-project.sh --no-backup --skip-tests
if [ -n "$(git status --porcelain)" ]; then
echo "changes=true" >> $GITHUB_OUTPUT
else
echo "changes=false" >> $GITHUB_OUTPUT
fi
- name: Build test image.
if: steps.update.outputs.changes == 'true'
uses: docker/build-push-action@v7
with:
context: .
push: false
tags: test-image:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Create Pull Request.
if: steps.update.outputs.changes == 'true'
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore(deps): update project dependencies'
title: 'chore(deps): update project dependencies'
body: |
## Automated Project Update
This PR updates project dependencies to their latest versions.
Updates may include:
- Docker base image (dind-alpine)
- GitHub Actions versions
- Pre-commit hook versions
### Testing
- Build test completed successfully
- Please review and test the updates before merging
---
*This PR was automatically generated by the update-project workflow.*
branch: chore/update-project-deps
delete-branch: true
assignees: SimplicityGuy
labels: dependencies,automated,docker
- name: Send notification to Discord.
uses: sarisia/actions-status-discord@b8381b25576cb341b2af39926ab42c5056cc44ed # v1.15.5
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}