test github action #11
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Auto Update | |
on: | |
workflow_dispatch: # Manual trigger only | |
push: | |
branches: [ test-* ] # Trigger on test branches | |
jobs: | |
test-update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3 | |
- name: Build and run in Arch container | |
run: | | |
# Build the container with caching | |
docker buildx build \ | |
--load \ | |
--cache-from type=gha \ | |
--cache-to type=gha,mode=max \ | |
-t arch-builder \ | |
-f .github/Dockerfile \ | |
.github | |
# Run the container with workspace mounted | |
docker run --rm \ | |
-v ${{ github.workspace }}:/workspace \ | |
-w /workspace \ | |
arch-builder \ | |
bash -c " | |
chown -R builder:builder /workspace && | |
su - builder -c 'cd /workspace && chmod +x update-package.sh && ./update-package.sh --ci' | |
" || echo "Script completed with exit code $?" | |
- name: Show changes | |
run: | | |
echo "=== Git status ===" | |
git status | |
echo "=== PKGBUILD changes ===" | |
git diff PKGBUILD || echo "No PKGBUILD changes" | |
echo "=== .SRCINFO changes ===" | |
git diff .SRCINFO || echo "No .SRCINFO changes" |