Skip to content

Check Debian Linux official packages #604

Check Debian Linux official packages

Check Debian Linux official packages #604

Workflow file for this run

name: 'Check Debian Linux official packages'
# **What it does**: Checks software new releases, then notify me.
on:
push:
branches:
- update
schedule:
- cron: '30 1 * * *' # Run everyday at 01:30 UTC
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
Check-debianpkg:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# - name: Install nvchecker
# run: sudo apt-get update && sudo apt-get install -y nvchecker
- name: Install nvchecker
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: nvchecker
version: 1.0
- name: Check versions
run: nvchecker -t 3 -c ./debianpkg.config.toml
- name: Compare versions
run: |
nvcmp -c ./debianpkg.config.toml | tee /tmp/nvcmp_out.txt && mv debianpkg.new.json debianpkg.json
echo 'NV<<EOF' >> $GITHUB_ENV
cat /tmp/nvcmp_out.txt | sed 's/^/- /' >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
echo "NV_COUNT=$(wc -l /tmp/nvcmp_out.txt | awk '{print $1}')" >> $GITHUB_ENV
- name: Create pull request
if: ${{ env.NV }}
uses: peter-evans/create-pull-request@v7
with:
commit-message: ${{ env.NV_COUNT }} debian pkg updated
branch: debianpkg_new_version
delete-branch: true
base: main
title: 'Debian package bump report'
body: |
Debian packages
${{ env.NV }}
labels: |
debianpkg
report
automated pr
draft: false