From 1f1eeefe9c61c7938fb607239b1c49e5c1c57535 Mon Sep 17 00:00:00 2001 From: Erik Osterman Date: Fri, 3 May 2024 17:17:33 -0500 Subject: [PATCH] chore: Update GitHub workflows --- .github/workflows/feature-branch.yml | 18 ++++++++++++++++++ .github/workflows/release-branch.yml | 1 + .github/workflows/scheduled.yml | 16 ++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 .github/workflows/feature-branch.yml create mode 100644 .github/workflows/scheduled.yml diff --git a/.github/workflows/feature-branch.yml b/.github/workflows/feature-branch.yml new file mode 100644 index 0000000..4567939 --- /dev/null +++ b/.github/workflows/feature-branch.yml @@ -0,0 +1,18 @@ +--- +name: feature-branch +on: + pull_request: + branches: + - main + - release/** + types: [opened, synchronize, reopened, labeled, unlabeled] + +permissions: + pull-requests: write + id-token: write + contents: write + +jobs: + terraform-module: + uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/feature-branch.yml@main + secrets: inherit diff --git a/.github/workflows/release-branch.yml b/.github/workflows/release-branch.yml index 3593cea..852d5e3 100644 --- a/.github/workflows/release-branch.yml +++ b/.github/workflows/release-branch.yml @@ -10,6 +10,7 @@ on: - 'docs/**' - 'examples/**' - 'test/**' + - 'README.md' permissions: {} diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml new file mode 100644 index 0000000..7bc09ab --- /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-actions-workflows-terraform-module/.github/workflows/scheduled.yml@main + secrets: inherit