Start using actionlint on GH Actions workflows

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-01-27 11:20:44 +00:00
parent 9b0072e9ce
commit 9de4d68767
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF
4 changed files with 13 additions and 5 deletions

7
.github/actionlint.yaml vendored Normal file
View file

@ -0,0 +1,7 @@
self-hosted-runner:
# Labels of self-hosted runner in array of string
labels:
- bastion
- x86_64
- arm64
- aarch64

View file

@ -43,10 +43,6 @@ jobs:
apt update
apt install -y python3 python3-venv python3-pip build-essential devscripts debhelper bash-completion git
- name: List CWD
run: |
ls -la $(cwd)
- name: Download Release Changes
uses: actions/download-artifact@v3
with:

View file

@ -61,7 +61,7 @@ jobs:
SALT_ONEDIR_ARCHIVE: "${{ github.workspace }}/artifacts/salt-${{ inputs.salt-version }}-onedir-linux-${{ matrix.arch }}.tar.xz"
run: |
echo "${{ inputs.salt-version }}" > salt/_version.txt
rpmbuild -bb --define="_salt_src $(pwd)" $(pwd)/pkg/rpm/salt.spec
rpmbuild -bb --define="_salt_src $(pwd)" "$(pwd)/pkg/rpm/salt.spec"
- name: Upload RPMs
uses: actions/upload-artifact@v3

View file

@ -3,6 +3,11 @@ default_language_version:
exclude: ^(doc/_static/.*|doc/_themes/.*)$
repos:
- repo: https://github.com/rhysd/actionlint
rev: v1.6.23
hooks:
- id: actionlint
- repo: https://github.com/saltstack/pip-tools-compile-impersonate
rev: "4.6"
hooks: