Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform tests ChatOps shared workflow #34

Merged
merged 6 commits into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci-codeowners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ name: |-
workflow_call:

jobs:
cd:
ci-codeowners:
uses: cloudposse/github-actions-workflows/.github/workflows/ci-codeowners-full.yml@main
with:
is_fork: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
```
on:
workflow_call:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ name: |-
contents: read

jobs:
cd:
ci-readme:
uses: cloudposse/github-actions-workflows/.github/workflows/ci-readme.yml@main
with:
suggestions: true
filter-mode: diff_context
```
on:
workflow_call:
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/ci-terraform-chatops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: |-
CI - Terraform ChatOps

Trigger terraform tests using ChatOps

### Usage
```yaml
name: Terraform ChatOps
on:
workflow_call:

permissions:
pull-requests: write
id-token: write
contents: read

jobs:
ci-terraform-chatops:
uses: cloudposse/github-actions-workflows/.github/workflows/ci-terraform-chatops.yml@main
secrets:
github_access_token: $\{\{ secrets.REPO_ACCESS_TOKEN \}\}
```
on:
workflow_call:
inputs:
runs-on:
description: "Overrides job runs-on setting (json-encoded list)"
type: string
required: false
default: '["ubuntu-latest"]'
secrets:
github_access_token:
description: "GitHub API token"
required: true

jobs:
terratest:
runs-on: ${{ fromJSON(inputs.runs-on) }}
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: cloudposse/actions/github/slash-command-dispatch@0.33.0
with:
token: ${{ secrets.github_access_token }}
repository: cloudposse/actions
commands: terratest
permission: triage
issue-type: pull-request
reactions: false
3 changes: 2 additions & 1 deletion .github/workflows/ci-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ name: |-
contents: read

jobs:
cd:
ci-terraform:
uses: cloudposse/github-actions-workflows/.github/workflows/ci-terraform.yml@main
with:
suggestions: true
filter-mode: diff_context
```
on:
workflow_call:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/controller-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ name: |-
jobs:
label:
uses: cloudposse/github-actions-workflows/.github/workflows/controller-labels.yml@main

with:
labels: ['ready-for-review']
```

on:
Expand Down