-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (53 loc) · 1.69 KB
/
update-deps.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
59
60
61
62
63
name: Update via Updatecli
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # Every Sunday at midnight
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
steps:
# Checkout the repository
- name: Checkout
uses: actions/checkout@v4
- name: Setup AWS credentials
uses: aws-actions/[email protected]
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-west-2
- name: AWS Info
run: aws sts get-caller-identity
# Install and run updatecli
- name: Setup updatecli
uses: updatecli/updatecli-action@v2
- name: Run updatecli
run: |
for config in updatecli/*.yaml; do
updatecli apply --config $config
done
env:
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update binaries
run: make update-binaries
# Use Peter Evans Pull Request Action to create a pull request
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "feat: update dependencies"
title: 'feat: update dependencies'
body: |
Updates dependencies using `updatecli`.
To force github actions to run add an empty commit to this branch
```
git fetch
git checkout branch_name
git commit --allow-empty -m "Trigger GitHub Actions"
git push origin branch_name
```
labels: automated-pr, update
draft: false