ZFS packages for Fedora, CentOS Stream & RHEL for the aarch64 architecture
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.
 
 

52 lines
1.3 KiB

name: Backport Packages (Daily)
# Everyday at 02:00 UTC
on:
schedule:
- cron: '0 2 * * *'
# Enables manual triggering of the workflow
workflow_dispatch:
# Grants the action write access to the repository
permissions:
contents: write
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
# 2. Checkout the repository
- name: Checkout repository
uses: actions/checkout@v4
# 3. Run the update script in the container
- name: Run update script
run: ./update.sh
# 4. Prepare and push changes (if any)
- name: Commit and push changes
run: |
# Configure git
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
# Add all changes
git add .
# Check if there are changes to commit
if ! git diff-index --quiet HEAD; then
echo "Changes detected. Committing and pushing..."
git commit -m "chore: Automatic package backport"
git push
else
echo "No changes to commit."
fi