update-snapshots #1176
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: update-snapshots | |
on: | |
# will send emails to last editor of this cron syntax (distroless-bot) | |
schedule: | |
- cron: '35 8 * * *' | |
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" |