From 8498488fa27cfb8b6a8222c4b9835949a996c3b8 Mon Sep 17 00:00:00 2001 From: Wayne <53596635+wayne-root@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:57:26 +0800 Subject: [PATCH] Update workflow (#42) --- .github/workflows/ci.yml | 2 -- .github/workflows/precommit-autoupdate.yml | 30 ---------------------- 2 files changed, 32 deletions(-) delete mode 100644 .github/workflows/precommit-autoupdate.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6f1d5b..c378260 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,4 @@ jobs: 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 diff --git a/.github/workflows/precommit-autoupdate.yml b/.github/workflows/precommit-autoupdate.yml deleted file mode 100644 index 511b5e6..0000000 --- a/.github/workflows/precommit-autoupdate.yml +++ /dev/null @@ -1,30 +0,0 @@ -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 }}