Skip to content

Merge branch 'main' into Enhance-WF #22

Merge branch 'main' into Enhance-WF

Merge branch 'main' into Enhance-WF #22

Workflow file for this run

name: Check if ISO can be built
on:
pull_request:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build ISO in Arch Linux Container
uses: addnab/docker-run-action@v3
with:
image: archlinux:latest
options: >
--privileged
--workdir /workdir
-v ${{ github.workspace }}:/workdir
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm git archiso grub
mkarchiso -v -w workdir/ -o out/ .
"

Check failure on line 31 in .github/workflows/build-check.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-check.yaml

Invalid workflow file

You have an error in your yaml syntax on line 31
- name: Rename ISO to Arch.iso
run: |
docker exec arch-container bash -c "
iso_file=\$(ls /workdir/out/*.iso 2>/dev/null | head -n 1) &&
[ -n \"\$iso_file\" ] && mv \$iso_file /workdir/out/Arch.iso || echo 'No ISO file found.'
"
- name: Copy ISO to Host
run: |
docker cp arch-container:/workdir/out/Arch.iso ${{ github.workspace }}/ || echo 'Failed to copy ISO to host.'
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Create GitHub Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Arch.iso
path: out/Arch.iso
- name: Delete ISO Artifact
if: always()
run: |
rm -f out/Arch.iso