Skip to content

villain: fix syntax

villain: fix syntax #2

Workflow file for this run

name: Vulcano
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
pull_request_target:
types: [opened, reopened, edited, synchronize, ready_for_review]
paths:
- 'packages/**/PKGBUILD'
jobs:
labeling:
runs-on: ubuntu-latest
steps:
- name: Labeling
uses: actions-ecosystem/action-add-labels@v1
with:
labels: '1.has: package'
pkgcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pkgcheck-arch
- name: Check Styling
run: |
CHANGED_FILES=($(git diff --name-only --diff-filter=ACMRT origin/${{ github.event.pull_request.base.ref }}...${{ github.event.pull_request.head.sha }} | tr '\n' ' '))
for FILE in "${CHANGED_FILES[@]}"; do
if [[ $(basename "$FILE") == "PKGBUILD" ]]; then
echo "Validating $FILE..."
pkgcheck "$FILE"
fi
done
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
- name: Build Package
run: |
CHANGED_FILES=($(git diff --name-only --diff-filter=ACMRT origin/${{ github.event.pull_request.base.ref }}...${{ github.event.pull_request.head.sha }} | tr '\n' ' '))
for FILE in "${CHANGED_FILES[@]}"; do
if [[ $(basename "$FILE") == "PKGBUILD" ]]; then
echo "Building $FILE..."
podman run --rm --userns=keep-id -v "${GITHUB_WORKSPACE}/$(dirname "$FILE"):/src" docker.io/athenaos/vulcano
fi
done