chore(deps): update helm release promtail to v6 #1571
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
name: Pre-commit check | |
# Controls when the workflow will run | |
on: | |
pull_request: | |
branches: [main] | |
types: [labeled, opened, reopened, synchronize] | |
workflow_dispatch: | |
env: | |
TF_DOCS_VERSION: v0.16.0 | |
TFLINT_VERSION: v0.44.1 | |
TF_VERSION: "1.3.4" | |
HELM_DOCS_VERSION: "1.11.0" | |
permissions: | |
contents: read | |
jobs: | |
pre-commit: | |
if: github.event.action != 'labeled' || github.event.label.name == 'pre-commit ci run' | |
name: Pre-commit check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repository | |
uses: actions/checkout@v4 | |
- run: gh pr edit ${{ github.event.number }} --remove-label 'pre-commit ci run' | |
if: github.event.action == 'labeled' && github.event.label.name == 'pre-commit ci run' | |
env: | |
GH_TOKEN: ${{ github.token }} | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- uses: actions/cache@v4 | |
name: Cache plugin dir | |
with: | |
path: ~/.tflint.d/plugins | |
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }} | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_version: 1.1.7 | |
- name: Setup TFLint | |
uses: terraform-linters/setup-tflint@v4 | |
with: | |
tflint_version: ${{env.TFLINT_VERSION}} | |
- name: Setup Terraform docs | |
run: | | |
wget https://github.com/terraform-docs/terraform-docs/releases/download/${{env.TF_DOCS_VERSION}}/terraform-docs-${{env.TF_DOCS_VERSION}}-linux-amd64.tar.gz -O terraform_docs.tar.gz | |
tar -zxvf terraform_docs.tar.gz terraform-docs | |
chmod +x terraform-docs | |
mv terraform-docs /usr/local/bin/ | |
- name: Setup helm-docs | |
run: | | |
cd /tmp | |
wget https://github.com/norwoodj/helm-docs/releases/download/v${{env.HELM_DOCS_VERSION}}/helm-docs_${{env.HELM_DOCS_VERSION}}_Linux_x86_64.tar.gz | |
tar -xvf helm-docs_${{env.HELM_DOCS_VERSION}}_Linux_x86_64.tar.gz | |
sudo mv helm-docs /usr/local/sbin | |
- name: Pre-commit checks | |
uses: pre-commit/[email protected] | |
- name: pre-commit-ci-lite | |
uses: pre-commit-ci/[email protected] | |
if: always() |