Skip to content

Commit

Permalink
Upgrade GH workflow (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
wayne-root authored Apr 23, 2024
1 parent 182b319 commit 9450aa1
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 74 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: terraform-ci
on:
pull_request:
permissions:
actions: read
checks: read
contents: read
pull-requests: write
jobs:
ci:
uses: SPHTech-Platform/reusable-workflows/.github/workflows/terraform.yaml@v2
with:
upload_sarif: false
default_runner_override_label: self-hosted
runner_label: platform-eng-ent
secrets: inherit
74 changes: 0 additions & 74 deletions .github/workflows/pre-commit.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/precommit-autoupdate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Autoupdate pre-commit configs and tflint aws plugin

on:
# every sunday at midnight
schedule:
- cron: "0 0 * * 0"
# on demand
workflow_dispatch:

# Request from Org admin to allow Github Action workflow to make PR under Settings > Actions > General
permissions:
actions: read
checks: read
contents: write #require this to write to repo
pull-requests: write #require this to create PR

jobs:
auto-update:
runs-on:
- self-hosted
- platform-eng-ent
steps:
- uses: SPHTech-Platform/gha-pre-commit-autoupdate@testgh
name: Update pre-commit config automatically
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: SPHTech-Platform/gha-tflint-aws-plugin-autoupdate@main
name: Update tflint aws plugin automatically
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9450aa1

Please sign in to comment.