Skip to content

Commit

Permalink
Feature: tfcheck dependency update with versionEvaluate (#115)
Browse files Browse the repository at this point in the history
Co-authored-by: Anmol Nagpal <ianmolnagpal@gmail.com>
  • Loading branch information
themaniskshah and anmolnagpal authored Jan 10, 2024
1 parent 6a1f9c0 commit 077e955
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/auto_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ on:

jobs:
static-checks:
name: Check the status of static checks
name: Check Static Analysis
runs-on: ubuntu-latest
strategy:
matrix:
tf-checks: ["tf-lint / tflint", "tfsec / tfsec sarif report", "${{ inputs.tfcheck }}"]
if: github.actor == 'dependabot[bot]'
steps:
- name: Wait for "${{ matrix.tf-checks }}" to succeed
- name: Wait for "${{ matrix.tf-checks }}" to Succeed
uses: lewagon/wait-on-check-action@v1.3.3
with:
ref: ${{ github.event.pull_request.head.sha }}
Expand All @@ -39,13 +39,13 @@ jobs:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Approve a PR for Github Bot
- name: Approve PR via GitHub Bot
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Approve a PR for Anmol nagpal
- name: Approve PR via Anmol Nagpal
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
Expand All @@ -55,8 +55,7 @@ jobs:
runs-on: ubuntu-latest
needs: autoapprove
steps:
- id: automerge
name: automerge
- name: Automerge
uses: pascalgn/automerge-action@v0.15.6
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tf-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
format:
name: Check code format
runs-on: ubuntu-latest
needs: versionExtract
needs: [versionExtract, versionEvaluate]

steps:
# - Checkout the repository to the GitHub Actions runner
Expand Down

0 comments on commit 077e955

Please sign in to comment.