You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
name: Backport Packages (Daily)
|
|
|
|
# Everyday at 02:00 UTC
|
|
on:
|
|
schedule:
|
|
- cron: '0 2 * * *'
|
|
# Enables manual triggering of the workflow
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update-packages:
|
|
runs-on: ubuntu-latest
|
|
|
|
# Defines the Fedora container for this job
|
|
container:
|
|
image: fedora:latest
|
|
|
|
steps:
|
|
# 1. Install pre-requisites
|
|
- name: Install pre-requisites
|
|
run: dnf install -y patch git git-lfs
|
|
|
|
# 2. Checkout the repository
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.head_ref }}
|
|
|
|
# 3. Run the update script in the container
|
|
- name: Run update script
|
|
run: ./update.sh
|
|
|
|
# 4. Push changes (if any)
|
|
- uses: stefanzweifel/git-auto-commit-action@v7
|
|
with:
|
|
commit_message: Backport packages from upstream
|
|
commit_author: Nicolas Massé <nicolas.masse@itix.fr>
|
|
# We cannot use the default GITHUB_TOKEN as it is restricted and cannot
|
|
# trigger another workflow run, which is needed here to trigger the COPR build
|
|
token: ${{ secrets.COMMIT_TOKEN }}
|
|
|