Skip to content

Commit

Permalink
chore: Update GitHub Workflows to use shared workflows from '.github'…
Browse files Browse the repository at this point in the history
… repo
  • Loading branch information
osterman committed May 20, 2024
1 parent 496244f commit 4861254
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions .github/workflows/chatops.yml
Original file line number Diff line number Diff line change
@@ -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 }}
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4861254

Please sign in to comment.