From 677608cf8b8f11282ae1fd333bbf57bc6c7127a1 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Wed, 6 Dec 2023 20:53:00 +0100 Subject: [PATCH] Add action scripts --- .github/workflows/debian.yml | 31 +++++++++++++++++++++++++++++++ .github/workflows/lint.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .github/workflows/debian.yml create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml new file mode 100644 index 000000000..0a7df186b --- /dev/null +++ b/.github/workflows/debian.yml @@ -0,0 +1,31 @@ +name: Debian package +# +# Description +# + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + + Debian: + uses: armbian/scripts/.github/workflows/pack-debian.yml@master + with: + matrix: "all:jammy" + maintainer: "Igor Pecovnik " + package: "configng" + licence: "GPL 2.0" + homepage: "https://www.armbian.com" + section: "default" + priority: "optional" + depends: "" + description: "Configng" + + secrets: + GPG_PRIVATE_KEY: ${{ secrets.GPG_KEY1 }} + PASSPHRASE: ${{ secrets.GPG_PASSPHRASE1 }} + SSH_KEY_TORRENTS: ${{ secrets.KEY_TORRENTS }} + KNOWN_HOSTS_UPLOAD: ${{ secrets.KNOWN_HOSTS_TORRENTS }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..d9f985fe6 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,26 @@ +name: Lint scripts + +on: + workflow_dispatch: + pull_request: + +jobs: + + Shellcheck: + + name: Shell script analysis + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'Armbian' }} + steps: + + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Environment variables + run: sudo -E bash -c set + + - name: "Shellcheck lint error report in diff format" + shell: bash {0} + run: | + + for file in $(find . -type f -executable ! -path '*/.git*/*' -exec grep -Iq . {} \; -print); do shellcheck -x $file; done