Skip to content

Check PKGBUILD using namcap #4

Check PKGBUILD using namcap

Check PKGBUILD using namcap #4

Workflow file for this run

name: Check PKGBUILD using namcap
on:
workflow_dispatch:
inputs:
package:
description: 'package to check'
jobs:
namcapcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: eweOS/packages
ref: ${{ github.event.inputs.package }}
- name: Run namcap
run: >-
docker run
--rm
-v $(pwd):/${{ github.workspace }}
-w ${{ github.workspace }}
archlinux:latest
bash -c "
pacman -Sy --noconfirm namcap &&
namcap ./PKGBUILD 2>&1 | tee namcap.log || true &&
set -euo pipefail &&
grep -vz ' E: ' namcap.log
"