From 46e4914fba24fd150aada9419dae12ddb08d5187 Mon Sep 17 00:00:00 2001 From: Erik Osterman Date: Mon, 20 May 2024 18:18:15 -0500 Subject: [PATCH] chore: Update GitHub Workflows to use shared workflows from '.github' repo --- .github/workflows/branch.yml | 25 +++++++++++++++++++++++++ .github/workflows/chatops.yml | 16 ++++++++++++++++ .github/workflows/release.yml | 13 +++++++++++++ .github/workflows/scheduled.yml | 16 ++++++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 .github/workflows/branch.yml create mode 100644 .github/workflows/chatops.yml create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/scheduled.yml diff --git a/.github/workflows/branch.yml b/.github/workflows/branch.yml new file mode 100644 index 0000000..fd64cd8 --- /dev/null +++ b/.github/workflows/branch.yml @@ -0,0 +1,25 @@ +--- +name: Branch +on: + pull_request: + branches: + - main + - release/** + types: [opened, synchronize, reopened, labeled, unlabeled] + push: + branches: + - main + - release/v* + paths-ignore: + - '.github/**' + - 'docs/**' + - 'examples/**' + - 'test/**' + - 'README.md' + +permissions: {} + +jobs: + terraform-module: + uses: cloudposse/.github/.github/workflows/shared-terraform-module.yml@main + secrets: inherit diff --git a/.github/workflows/chatops.yml b/.github/workflows/chatops.yml new file mode 100644 index 0000000..c3d47fa --- /dev/null +++ b/.github/workflows/chatops.yml @@ -0,0 +1,16 @@ +--- +name: chatops +on: + issue_comment: + types: [created] + +permissions: + pull-requests: write + id-token: write + contents: write + +jobs: + terraform-module: + uses: cloudposse/.github/.github/workflows/shared-terraform-chatops.yml@main + secrets: + github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..f968068 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,13 @@ +--- +name: release +on: + release: + types: + - published + +permissions: {} + +jobs: + terraform-module: + uses: cloudposse/.github/.github/workflows/shared-release-branches.yml@main + secrets: inherit diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml new file mode 100644 index 0000000..a79e949 --- /dev/null +++ b/.github/workflows/scheduled.yml @@ -0,0 +1,16 @@ +--- +name: scheduled +on: + workflow_dispatch: { } # Allows manually trigger this workflow + schedule: + - cron: "0 3 * * *" + +permissions: + pull-requests: write + id-token: write + contents: write + +jobs: + scheduled: + uses: cloudposse/.github/.github/workflows/shared-terraform-scheduled.yml@main + secrets: inherit