Skip to content

Trigger new pve-kernel release check #577

Trigger new pve-kernel release check

Trigger new pve-kernel release check #577

name: Trigger new pve-kernel release check
on:
workflow_dispatch:
inputs:
save-new-version:
description: 'Save new detected version'
type: boolean
default: true
required: false
schedule:
- cron: '45 2 * * *' # Every day at 2:45AM UTC / 7:45PM PST
env:
DEBIAN_FRONTEND: noninteractive
# save-new-version will be set in workflow_dispatch, but not when launched from a schedule
SAVE_NEW_VERSION: "${{ inputs.save-new-version != '' && inputs.save-new-version || true }}"
jobs:
set-state:
# Workaround: can't use env in job.with. Copy env to job.output instead and access it from check-for-new-kernel
name: Set SAVE_NEW_VERSION
runs-on: ubuntu-latest
outputs:
save-new-version: ${{ env.SAVE_NEW_VERSION }}
steps:
- name: Print state
run: |
echo "inputs.save-new-version: ${{ inputs.save-new-version }}"
echo "SAVE_NEW_VERSION: ${{ env.SAVE_NEW_VERSION }}"
check-for-new-kernel:
name: Check for new release for each branch
needs: set-state
strategy:
fail-fast: false
matrix:
branch: ['pve-kernel-5.15']
uses: ./.github/workflows/new-pve-kernel-release-check.yml
with:
branch: ${{ matrix.branch }}
save-new-version: ${{ needs.set-state.outputs.save-new-version == 'true' }}
secrets:
token: ${{ secrets.PAT }}
email_connection_url: ${{ secrets.EMAIL_NOTIFICATION_CONNECTION }}
email_recipients: ${{ secrets.EMAIL_NOTIFICATION_RECIPIENTS }}
permissions:
contents: write