Skip to content

Check for updates #1991

Check for updates

Check for updates #1991

Workflow file for this run

name: Check for updates
on:
schedule: # for scheduling to work this file must be in the default branch
- cron: "30 */6 * * *" # run every 6 hours
workflow_dispatch: # can be manually dispatched under GitHub's "Actions" tab
jobs:
update-versions:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
outputs:
changes_detected: ${{ steps.commit.outputs.changes_detected }}
steps:
# Perform the checkout of the main branch
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
# Perform the actual version check
- name: Check for new versions for all parts
run: .github/scripts/update-versions.sh
env:
GH_TOKEN: ${{ github.token }}
# Commit changed file back to the repository
- name: Commit changes
id: commit
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
with:
commit_message: Automatic update versions
#commit_user_name: 'github-actions[bot]'
#commit_user_email: '41898282+github-actions[bot]@users.noreply.github.com'
commit_author: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'
build:
if: needs.update-versions.outputs.changes_detected == 'true'
needs:
- update-versions
uses: ./.github/workflows/publish.yaml
secrets: inherit
permissions:
contents: write # needed to allow upload SBOM to GitHub dependency submission API
id-token: write # needed for signing the images with GitHub OIDC Token