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 0d6a38d commit e1af2d7
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 60 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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: feature-branch-chatops
name: chatops
on:
issue_comment:
types: [created]
Expand All @@ -11,6 +11,6 @@ permissions:

jobs:
terraform-module:
uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/feature-branch-chatops.yml@main
uses: cloudposse/.github/.github/workflows/shared-terraform-chatops.yml@main
secrets:
github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/feature-branch.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/release-branch.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/release-published.yml

This file was deleted.

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
5 changes: 2 additions & 3 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ permissions:

jobs:
scheduled:
uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/scheduled.yml@main
secrets:
github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }}
uses: cloudposse/.github/.github/workflows/shared-terraform-scheduled.yml@main
secrets: inherit

0 comments on commit e1af2d7

Please sign in to comment.