Skip to content

Check versions

Check versions #660

name: Check versions
on:
schedule:
- cron: '0 0 * * 0'
push:
branches: [main]
jobs:
check-updates:
name: Check for updates
runs-on: ubuntu-22.04
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
token: ${{ steps.generate_token.outputs.token }}
- name: Install dependencies
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt update && sudo apt install -y python3 curl jq sed gawk perl
sudo curl -fsSL https://github.com/mikefarah/yq/releases/download/v4.25.3/yq_linux_amd64 -o /usr/local/bin/yq && sudo chmod +x /usr/local/bin/yq
- name: Update versions
env:
TOKEN: ${{ steps.generate_token.outputs.token }}
run: ./.ci/check-versions.sh ${TOKEN}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.generate_token.outputs.token }}
commit-message: 'chore: update dependencies'
delete-branch: true
title: 'chore: update dependencies'
branch: chore/update-dependencies
signoff: true