-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to using a better jinja linter
- Loading branch information
Showing
2 changed files
with
6 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,24 +16,9 @@ jobs: | |
with: | ||
python-version: 3.9 | ||
- uses: pre-commit/[email protected] | ||
jinja-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: Install jinja libraries | ||
run: | | ||
python -m pip install --upgrade jinja2==3.0.1 | ||
- name: Install jinja linter tool | ||
run: git clone --single-branch https://github.com/drm/jinja2-lint.git /tmp/jinja2-lint && pushd /tmp/jinja2-lint && git checkout 75dcd5a | ||
- name: Execute jinja linter | ||
run: find . -type f -name "*.j2" -exec /tmp/jinja2-lint/j2lint.py '{}' + | ||
deploy-agoradev-common: | ||
if: github.ref == 'refs/heads/main' | ||
needs: [pre-commit, jinja-lint] | ||
needs: [pre-commit] | ||
uses: "./.github/workflows/aws-deploy.yaml" | ||
with: | ||
role-to-assume: "arn:aws:iam::607346494281:role/sagebase-github-oidc-agora-infra-deploy" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters