Add sts headers #114
Workflow file for this run
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 | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
pull_request: | |
branches: | |
- main | |
env: | |
TERM: xterm-256color | |
jobs: | |
versionExtract: | |
name: Extract Min/Max Versions | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Extract Terraform min/max versions | |
id: minMax | |
uses: clowdhaus/[email protected] | |
outputs: | |
minVersion: ${{ steps.minMax.outputs.minVersion }} | |
maxVersion: ${{ steps.minMax.outputs.maxVersion }} | |
preCommit: | |
name: Pre-commit hooks execute | |
runs-on: ubuntu-latest | |
needs: versionExtract | |
strategy: | |
matrix: | |
version: | |
- ${{ needs.versionExtract.outputs.minVersion }} | |
- ${{ needs.versionExtract.outputs.maxVersion }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run pre-commit ${{ matrix.version }} | |
uses: clowdhaus/terraform-composite-actions/[email protected] | |
with: | |
terraform-version: ${{ matrix.version }} | |
args: "--all-files --color always --show-diff-on-failure" |