Skip to content

Commit

Permalink
Add a new GH workflow to run on dependabot PRs (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
arybolovlev authored Aug 9, 2024
1 parent cf63dbd commit badfcf1
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/dependabot-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Dependabot PR

on:
push:
branches:
- dependabot/**
paths:
- 'go.mod'
- 'go.sum'

jobs:
hcp-terraform:
if: github.actor == 'dependabot[bot]'
uses: ./.github/workflows/end-to-end-tfc.yaml
hcp-terraform-helm:
if: github.actor == 'dependabot[bot]'
uses: ./.github/workflows/helm-end-to-end-tfc.yaml
terraform-enterprise:
if: github.actor == 'dependabot[bot]'
uses: ./.github/workflows/end-to-end-tfe.yaml
terraform-enterprise-helm:
if: github.actor == 'dependabot[bot]'
uses: ./.github/workflows/helm-end-to-end-tfe.yaml
1 change: 1 addition & 0 deletions .github/workflows/end-to-end-tfc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
paths:
- 'controllers/**'
workflow_dispatch:
workflow_call:

jobs:
tests:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/end-to-end-tfe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
paths:
- 'controllers/**'
workflow_dispatch:
workflow_call:

jobs:
tests:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/helm-end-to-end-tfc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'controllers/**'
- 'charts/hcp-terraform-operator/**'
workflow_dispatch:
workflow_call:

env:
USE_EXISTING_CLUSTER: true
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/helm-end-to-end-tfe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'controllers/**'
- 'charts/hcp-terraform-operator/**'
workflow_dispatch:
workflow_call:

env:
USE_EXISTING_CLUSTER: true
Expand Down

0 comments on commit badfcf1

Please sign in to comment.