-
Notifications
You must be signed in to change notification settings - Fork 1.2k
41 lines (35 loc) · 1.21 KB
/
update-deb-package-snapshots.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
name: update-snapshots
on:
# will send emails to last editor of this cron syntax (distroless-bot)
schedule:
- cron: '30 20 * * *'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Run update script
run: ./updateWorkspaceSnapshots.sh
- name: Run update sboms script
run: |
for i in $(seq 5); do
bazel --bazelrc=$GITHUB_WORKSPACE/.github/workflows/ci.bazelrc fetch //private/pkg/test/oci_image:test_sboms && break || sleep 20;
done
bazel run @//private/pkg/test/oci_image:test_sboms
- name: Create Pull Request
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
with:
token: ${{ secrets.ACTIONS_TOKEN }}
commit-message: "Bumping packages to latest stable versions"
author: "Distroless Bot <[email protected]>"
title: "Bumping packages to latest stable versions"
body: "Bumping packages to latest stable versions"
branch: "update-snapshots"