-
Notifications
You must be signed in to change notification settings - Fork 55
41 lines (34 loc) · 1.21 KB
/
bump-deps.yml
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
# adapted based on
# https://github.com/google/go-containerregistry/blob/main/.github/workflows/bump-deps.yaml
name: Bump Deps
on:
schedule:
- cron: '0 10 * * 2' # weekly at 10AM Tuesday
workflow_dispatch:
env:
GO_VERSION: '1.22.8'
permissions:
contents: write
pull-requests: write
jobs:
bump-deps:
name: Bump Deps
# Don't bother bumping deps on forks.
if: ${{ github.repository == 'awslabs/soci-snapshotter' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: ./scripts/bump-deps.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
title: "Bump dependencies using scripts/bump-deps.sh"
commit-message: "Bump dependencies using scripts/bump-deps.sh"
body: "This PR created by [create-pull-request](https://github.com/peter-evans/create-pull-request) must be closed and reopened manually to trigger automated checks."
labels: dependencies
delete-branch: true
author: "GitHub <[email protected]>"
signoff: true