Compare commits
3 commits
828322a4c2
...
e2ad48f4ea
Author | SHA1 | Date | |
---|---|---|---|
|
e2ad48f4ea | ||
|
cd9872e4c0 | ||
|
e8399bda00 |
|
@ -15,33 +15,31 @@ jobs:
|
||||||
image: debian:bullseye
|
image: debian:bullseye
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Node.js
|
- name: Install Prerequisites
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y curl
|
apt-get update && apt-get install -y git curl
|
||||||
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
||||||
apt-get install -y nodejs
|
apt-get install -y nodejs
|
||||||
|
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: https://code.forgejo.org/actions/checkout@v4
|
uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Fetch the entire history to avoid REST API reliance
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
- name: List Checked Out Files
|
|
||||||
run: ls -al /workspace/ZoopaMario/backup-automation
|
|
||||||
|
|
||||||
>>>>>>> 20dd94e (Add shellcheck workflow)
|
|
||||||
- name: Install ShellCheck
|
- name: Install ShellCheck
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y shellcheck
|
apt-get update && apt-get install -y shellcheck
|
||||||
|
|
||||||
- name: Verify ShellCheck Installation
|
- name: Lint Bash Scripts
|
||||||
run: which shellcheck
|
run: |
|
||||||
|
echo "Linting Bash scripts..."
|
||||||
|
find . -name '*.sh' -print0 | xargs -0 shellcheck
|
||||||
|
|
||||||
- name: Find Shell Scripts
|
- name: Check Commit Messages
|
||||||
run: find . -name '*.sh' -print
|
run: |
|
||||||
|
echo "Checking commit message format..."
|
||||||
- name: Debug Commit Message
|
if ! git log -1 --pretty=%B | grep -Eq '^(feat|fix|chore|docs|style|refactor|test|perf):'; then
|
||||||
run: git log -1 --pretty=%B
|
echo "Commit message does not follow the conventional format: <type>: <subject>"
|
||||||
|
exit 1
|
||||||
- name: Show Environment Variables
|
fi
|
||||||
run: env
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue