mirror of
https://github.com/terraform-aws-modules/terraform-aws-rds-proxy.git
synced 2025-12-17 00:11:11 +00:00
fix: Update CI configuration files to use latest version
This commit is contained in:
parent
8d5c48782d
commit
84d42b824b
6 changed files with 34 additions and 13 deletions
21
.github/workflows/lock.yml
vendored
Normal file
21
.github/workflows/lock.yml
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
name: 'Lock Threads'
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '50 1 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lock:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: dessant/lock-threads@v3
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
issue-comment: >
|
||||||
|
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
|
||||||
|
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
|
||||||
|
issue-inactive-days: '30'
|
||||||
|
pr-comment: >
|
||||||
|
I'm going to lock this pull request because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
|
||||||
|
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
|
||||||
|
pr-inactive-days: '30'
|
||||||
2
.github/workflows/pr-title.yml
vendored
2
.github/workflows/pr-title.yml
vendored
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
# Please look up the latest version from
|
# Please look up the latest version from
|
||||||
# https://github.com/amannn/action-semantic-pull-request/releases
|
# https://github.com/amannn/action-semantic-pull-request/releases
|
||||||
- uses: amannn/action-semantic-pull-request@v3.4.6
|
- uses: amannn/action-semantic-pull-request@v5.0.2
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
18
.github/workflows/pre-commit.yml
vendored
18
.github/workflows/pre-commit.yml
vendored
|
|
@ -17,11 +17,11 @@ jobs:
|
||||||
directories: ${{ steps.dirs.outputs.directories }}
|
directories: ${{ steps.dirs.outputs.directories }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get root directories
|
- name: Get root directories
|
||||||
id: dirs
|
id: dirs
|
||||||
uses: clowdhaus/terraform-composite-actions/directories@v1.3.0
|
uses: clowdhaus/terraform-composite-actions/directories@v1.8.0
|
||||||
|
|
||||||
preCommitMinVersions:
|
preCommitMinVersions:
|
||||||
name: Min TF pre-commit
|
name: Min TF pre-commit
|
||||||
|
|
@ -32,18 +32,18 @@ jobs:
|
||||||
directory: ${{ fromJson(needs.collectInputs.outputs.directories) }}
|
directory: ${{ fromJson(needs.collectInputs.outputs.directories) }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Terraform min/max versions
|
- name: Terraform min/max versions
|
||||||
id: minMax
|
id: minMax
|
||||||
uses: clowdhaus/terraform-min-max@v1.0.3
|
uses: clowdhaus/terraform-min-max@v1.2.0
|
||||||
with:
|
with:
|
||||||
directory: ${{ matrix.directory }}
|
directory: ${{ matrix.directory }}
|
||||||
|
|
||||||
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
|
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
|
||||||
# Run only validate pre-commit check on min version supported
|
# Run only validate pre-commit check on min version supported
|
||||||
if: ${{ matrix.directory != '.' }}
|
if: ${{ matrix.directory != '.' }}
|
||||||
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0
|
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.0
|
||||||
with:
|
with:
|
||||||
terraform-version: ${{ steps.minMax.outputs.minVersion }}
|
terraform-version: ${{ steps.minMax.outputs.minVersion }}
|
||||||
args: 'terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*'
|
args: 'terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*'
|
||||||
|
|
@ -51,7 +51,7 @@ jobs:
|
||||||
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
|
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
|
||||||
# Run only validate pre-commit check on min version supported
|
# Run only validate pre-commit check on min version supported
|
||||||
if: ${{ matrix.directory == '.' }}
|
if: ${{ matrix.directory == '.' }}
|
||||||
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0
|
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.0
|
||||||
with:
|
with:
|
||||||
terraform-version: ${{ steps.minMax.outputs.minVersion }}
|
terraform-version: ${{ steps.minMax.outputs.minVersion }}
|
||||||
args: 'terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)'
|
args: 'terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)'
|
||||||
|
|
@ -62,17 +62,17 @@ jobs:
|
||||||
needs: collectInputs
|
needs: collectInputs
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.ref }}
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
||||||
|
|
||||||
- name: Terraform min/max versions
|
- name: Terraform min/max versions
|
||||||
id: minMax
|
id: minMax
|
||||||
uses: clowdhaus/terraform-min-max@v1.0.3
|
uses: clowdhaus/terraform-min-max@v1.2.0
|
||||||
|
|
||||||
- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
|
- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
|
||||||
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0
|
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.0
|
||||||
with:
|
with:
|
||||||
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
|
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
|
||||||
terraform-docs-version: ${{ env.TERRAFORM_DOCS_VERSION }}
|
terraform-docs-version: ${{ env.TERRAFORM_DOCS_VERSION }}
|
||||||
|
|
|
||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
if: github.repository_owner == 'terraform-aws-modules'
|
if: github.repository_owner == 'terraform-aws-modules'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
|
||||||
2
.github/workflows/stale-actions.yaml
vendored
2
.github/workflows/stale-actions.yaml
vendored
|
|
@ -7,7 +7,7 @@ jobs:
|
||||||
stale:
|
stale:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v4
|
- uses: actions/stale@v6
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# Staling issues and PR's
|
# Staling issues and PR's
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/antonbabenko/pre-commit-terraform
|
- repo: https://github.com/antonbabenko/pre-commit-terraform
|
||||||
rev: v1.74.1
|
rev: v1.76.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: terraform_fmt
|
- id: terraform_fmt
|
||||||
- id: terraform_validate
|
- id: terraform_validate
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue