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 - name: Test actions
uses: ./ uses: ./
with: with:
path: $GITHUB_WORKSPACE
updpkgsums: true updpkgsums: true
srcinfo: true srcinfo: true
- name: Show diff
run: |
git diff PKGBUILD
git diff .SRCINFO
+5 -3
View File
@@ -1,6 +1,6 @@
#!/bin/sh -l #!/bin/sh -l
sudo chown -R builder $GITHUB_WORKSPACE sudo chown -R builder $INPUT_PATH
cd $INPUT_PATH cd $INPUT_PATH
if [[ $INPUT_UPDPKGSUMS == true ]]; then if [[ $INPUT_UPDPKGSUMS == true ]]; then
@@ -15,8 +15,10 @@ if [[ $INPUT_SRCINFO == true ]]; then
git diff .SRCINFO git diff .SRCINFO
fi fi
echo "Run makepkg with flags" if [[ -n "$INPUT_FLAGS" ]]; then
sudo -u builder makepkg $INPUT_FLAGS echo "Run makepkg with flags"
sudo -u builder makepkg $INPUT_FLAGS
fi
if [[ $INPUT_NAMCAP == true ]]; then if [[ $INPUT_NAMCAP == true ]]; then
echo "Validate PKGBUILD with namcap" echo "Validate PKGBUILD with namcap"