-
Notifications
You must be signed in to change notification settings - Fork 208
30 lines (30 loc) · 1.17 KB
/
shellcheck.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Shellcheck
on:
pull_request_target:
branches:
- master
push:
branches: '**'
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout pi-apps repo
uses: actions/checkout@v3
if: github.event_name != 'pull_request_target'
- name: Checkout pi-apps PR repo
uses: actions/checkout@v3
if: github.event_name == 'pull_request_target'
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}
- name: Check vital scripts for errors
run: |
cd $GITHUB_WORKSPACE
sudo apt install shellcheck wget -y
if ! shellcheck api createapp gui install manage preload settings uninstall updater etc/preload-daemon etc/runonce-entries etc/terminal-run apps/*/install apps/*/install-32 apps/*/install-64 apps/*/uninstall --color=always | sed '0,/'$(echo -e "\033")'\[31m/!{q1}' ;then
exit 1
fi