Skip to content

Merge pull request #30 from TimInTech/fix/snapshot-name-validation #77

Merge pull request #30 from TimInTech/fix/snapshot-name-validation

Merge pull request #30 from TimInTech/fix/snapshot-name-validation #77

Workflow file for this run

name: ci
on:
push:
pull_request:
permissions:
contents: read
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install shellcheck
run: |
sudo apt-get update
sudo apt-get install -y shellcheck
- name: Run shellcheck
run: |
set -euo pipefail
mapfile -d '' -t files < <(find . -maxdepth 4 -type f -name '*.sh' -print0)
if [ ${#files[@]} -eq 0 ]; then
echo "No shell scripts found."
exit 0
fi
shellcheck -x "${files[@]}"
- name: Check shell formatting (shfmt)
run: |
curl -sS https://webinstall.dev/shfmt | bash
export PATH="$HOME/.local/bin:$PATH"
shfmt -d proxmox-manager.sh