Skip to content

Bump Deps

Bump Deps #95

Workflow file for this run

# 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.6'
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