feat: use default path, lint bash script & show diff

This commit is contained in:
Ahmad Husen
2021-05-18 20:46:48 +07:00
parent 3036013a06
commit 444f56b20f
2 changed files with 18 additions and 12 deletions
+5 -1
View File
@@ -24,6 +24,10 @@ jobs:
- name: Test actions
uses: ./
with:
path: $GITHUB_WORKSPACE
updpkgsums: true
srcinfo: true
- name: Show diff
run: |
git diff PKGBUILD
git diff .SRCINFO
+3 -1
View File
@@ -1,6 +1,6 @@
#!/bin/sh -l
sudo chown -R builder $GITHUB_WORKSPACE
sudo chown -R builder $INPUT_PATH
cd $INPUT_PATH
if [[ $INPUT_UPDPKGSUMS == true ]]; then
@@ -15,8 +15,10 @@ if [[ $INPUT_SRCINFO == true ]]; then
git diff .SRCINFO
fi
if [[ -n "$INPUT_FLAGS" ]]; then
echo "Run makepkg with flags"
sudo -u builder makepkg $INPUT_FLAGS
fi
if [[ $INPUT_NAMCAP == true ]]; then
echo "Validate PKGBUILD with namcap"