Skip to content

test: pin bootc-image-builder ref for testing bootable containers #1

test: pin bootc-image-builder ref for testing bootable containers

test: pin bootc-image-builder ref for testing bootable containers #1

# This action updates the bootc-image-builder ref in the Schutzfile

Check failure on line 1 in .github/workflows/update-bootc-image-builder.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-bootc-image-builder.yml

Invalid workflow file

invalid `cron` attribute "0 5 * * 7"
---
name: "Update bootc-image-builder ref"
on:
workflow_dispatch:
schedule:
# Every Sunday at 05:00
- cron: "0 5 * * 7"
jobs:
update-and-push:
runs-on: ubuntu-latest
steps:
- name: Apt update
run: sudo apt update
- name: Install Dependencies
run: sudo apt install -y skopeo python3
- name: Update Schutzfile
run: ./test/scripts/update-schutzfile-bib
- name: Open PR
env:
GITHUB_TOKEN: ${{ secrets.SCHUTZBOT_GH_TOKEN }}
run: |
git config user.name "schutzbot"
git config user.email "schutzbot@gmail.com"
branch="schutzfile-bib-$(date -I)"
git checkout -b "${branch}"
git add Schutzfile
git commit -m "schutzfile: Update bootc-image-builder ref"
git push https://"$GITHUB_TOKEN"@github.com/schutzbot/images.git
echo "Updating bootc-image-builder test container ref to latest"
gh pr create \
-t "Update bootc-image-builder ref to latest" \
-F "body" \
--repo "osbuild/images" \
--base "main" \
--head "schutzbot:${branch}"