Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Absorb `actionlint` into pre-commit (#1028)
Adarsh Rawat10d757eb0f4d
diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.ymldeleted file mode 100644index 5ae36d07f..000000000--- a/.github/workflows/actionlint.yml+++ /dev/null@@ -1,26 +0,0 @@-name: Lint GitHub Actions workflows--on:- pull_request:- push:- branches:- - main--# Cancels all previous workflow runs for pull requests that have not completed.-concurrency:- # The concurrency group contains the workflow name and the branch name for pull requests- # or the commit hash for any other events.- group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}- cancel-in-progress: true--jobs:- actionlint:- runs-on: ubuntu-latest- steps:- - uses: actions/checkout@v3- - name: Check workflow files- run: |- echo "::add-matcher::.github/actionlint-matcher.json"- bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.6.15/scripts/download-actionlint.bash)- ./actionlint -color- shell: bashdiff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 575f62212..f66b355ac 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -129,6 +129,11 @@ repos:hooks:- id: shellcheck+ - repo: https://github.com/rhysd/actionlint+ rev: main+ hooks:+ - id: actionlint-docker+- repo: local # More local hooks are defined at the top.hooks:- id: typesdiff --git a/templates/.pre-commit-config.yaml.jinja b/templates/.pre-commit-config.yaml.jinjaindex ac24915e5..2b3f61708 100644--- a/templates/.pre-commit-config.yaml.jinja+++ b/templates/.pre-commit-config.yaml.jinja@@ -120,5 +120,10 @@ repos:rev: v0.8.0hooks:- id: shellcheck++ - repo: https://github.com/rhysd/actionlint+ rev: main+ hooks:+ - id: actionlint-docker{% block repos_bottom %}{% endblock %}