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 (#53)
  • Loading branch information
osterman authored May 21, 2024
1 parent 6a2b516 commit bd03eb8
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 82 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---
name: release-branch
name: Branch
on:
pull_request:
branches:
- main
- release/**
types: [opened, synchronize, reopened, labeled, unlabeled]
push:
branches:
- main
Expand All @@ -16,5 +21,5 @@ permissions: {}

jobs:
terraform-module:
uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release-branch.yml@main
uses: cloudposse/.github/.github/workflows/shared-terraform-module.yml@main
secrets: inherit
41 changes: 10 additions & 31 deletions .github/workflows/chatops.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,16 @@
---
name: chatops
on:
issue_comment:
types: [created]

jobs:
default:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Handle common commands"
uses: cloudposse/actions/github/[email protected]
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
reaction-token: ${{ secrets.GITHUB_TOKEN }}
repository: cloudposse/actions
commands: rebuild-readme, terraform-fmt
permission: triage
issue-type: pull-request

test:
runs-on: ubuntu-latest
steps:
- name: "Checkout commit"
uses: actions/checkout@v2
- name: "Run tests"
uses: cloudposse/actions/github/[email protected]
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
reaction-token: ${{ secrets.GITHUB_TOKEN }}
repository: cloudposse/actions
commands: test
permission: triage
issue-type: pull-request
reactions: false

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 }}
16 changes: 0 additions & 16 deletions .github/workflows/feature-branch-chatops.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/feature-branch.yml

This file was deleted.

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

jobs:
scheduled:
uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/scheduled.yml@main
uses: cloudposse/.github/.github/workflows/shared-terraform-scheduled.yml@main
secrets: inherit

0 comments on commit bd03eb8

Please sign in to comment.