Skip to content

Commit 8cf4294

Browse files
Merge branch 'main' into soerenmartius/correct-type
2 parents c152305 + 54cf814 commit 8cf4294

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,43 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: terraform-github-repository
13+
cancel-in-progress: false
14+
1115
jobs:
1216
pre-commit:
1317
runs-on: ubuntu-latest
1418
name: Static Analysis
1519
steps:
1620
- name: Checkout
1721
uses: actions/checkout@v2
22+
1823
- name: Run pre-commit
1924
run: make test/pre-commit
2025

2126
unit-tests:
27+
needs: pre-commit
2228
runs-on: ubuntu-latest
2329
name: Unit Tests
2430
steps:
2531
- name: Checkout
2632
uses: actions/checkout@v2
33+
34+
- name: Check for Terraform file changes
35+
uses: getsentry/paths-filter@v2
36+
id: changes
37+
with:
38+
token: ${{ github.token }}
39+
filters: |
40+
terraform:
41+
- '**/*.tf'
42+
- '**/*.go'
43+
- 'go.mod'
44+
- 'go.sum'
45+
2746
- name: Run Unit Tests
47+
if: steps.changes.outputs.terraform == 'true'
2848
run: make test/unit-tests
2949
env:
3050
GITHUB_OWNER: ${{ secrets.TEST_GITHUB_ORGANIZATION }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Most basic usage creating a new private github repository.
8383
```hcl
8484
module "repository" {
8585
source = "mineiros-io/repository/github"
86-
version = "~> 0.13.0"
86+
version = "~> 0.14.0"
8787
8888
name = "terraform-github-repository"
8989
license_template = "apache-2.0"

README.tfdoc.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ section {
8989
```hcl
9090
module "repository" {
9191
source = "mineiros-io/repository/github"
92-
version = "~> 0.13.0"
92+
version = "~> 0.14.0"
9393
9494
name = "terraform-github-repository"
9595
license_template = "apache-2.0"

0 commit comments

Comments
 (0)