From 4e87316d6d0d0d5758172efb6e0cf914c3e62250 Mon Sep 17 00:00:00 2001 From: Erik Osterman Date: Fri, 3 May 2024 17:16:51 -0500 Subject: [PATCH] chore: Update GitHub workflows --- .github/workflows/feature-branch.yml | 18 ++++++++++++++++++ .github/workflows/release-branch.yml | 20 ++++++++++++++++++++ .github/workflows/release-published.yml | 13 +++++++++++++ .github/workflows/scheduled.yml | 16 ++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 .github/workflows/feature-branch.yml create mode 100644 .github/workflows/release-branch.yml create mode 100644 .github/workflows/release-published.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 new file mode 100644 index 0000000..852d5e3 --- /dev/null +++ b/.github/workflows/release-branch.yml @@ -0,0 +1,20 @@ +--- +name: release-branch +on: + push: + branches: + - main + - release/v* + paths-ignore: + - '.github/**' + - 'docs/**' + - 'examples/**' + - 'test/**' + - 'README.md' + +permissions: {} + +jobs: + terraform-module: + uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release-branch.yml@main + secrets: inherit diff --git a/.github/workflows/release-published.yml b/.github/workflows/release-published.yml new file mode 100644 index 0000000..1b0aaca --- /dev/null +++ b/.github/workflows/release-published.yml @@ -0,0 +1,13 @@ +--- +name: release-published +on: + release: + types: + - published + +permissions: {} + +jobs: + terraform-module: + uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release-published.yml@main + secrets: inherit 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