Skip to content

Commit

Permalink
Merge pull request #35 from pbs/chore/updates_from_template
Browse files Browse the repository at this point in the history
Updates from template
  • Loading branch information
yhakbar authored Jul 10, 2023
2 parents c8dc9a2 + c66d74d commit 74a0f34
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 21 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,26 @@ jobs:
if: steps.asdf-cache.outputs.cache-hit != 'true'
uses: asdf-vm/actions/install@v2

- name: "Run document script if necessary"
run: |
if [[ "$(basename "$(git rev-parse --show-toplevel)")" != *'terraform-aws-template'* ]]; then
./scripts/document.sh
echo "Setting core.fileMode to false to avoid false positives in documentation check."
git config core.fileMode false
if [[ -n $(git status --porcelain) ]]; then
echo "Documentation is not up to date. Comitting updates"
git add README.md
git config user.name "${GITHUB_USERNAME}"
git config user.email "${GITHUB_USERNAME}@users.noreply.github.com"
git commit -m "Running document script"
fi
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}

- name: Release
run: ./scripts/release.sh
env:
Expand Down
32 changes: 16 additions & 16 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
### Using the Repo Source

```hcl
github.com/pbs/terraform-aws-ecs-service-module?ref=4.1.2
github.com/pbs/terraform-aws-ecs-service-module?ref=x.y.z
```

### Alternative Installation Methods
Expand All @@ -26,7 +26,7 @@ Integrate this module like so:

```hcl
module "service" {
source = "github.com/pbs/terraform-aws-ecs-service-module?ref=4.1.2"
source = "github.com/pbs/terraform-aws-ecs-service-module?ref=x.y.z"
# Required
primary_hosted_zone = "example.com"
Expand All @@ -49,7 +49,7 @@ This module will create an ECS cluster if one is not provided. If you would like

```hcl
module "service" {
source = "github.com/pbs/terraform-aws-ecs-service-module?ref=4.1.2"
source = "github.com/pbs/terraform-aws-ecs-service-module?ref=x.y.z"
# Required
primary_hosted_zone = "example.com"
Expand All @@ -73,7 +73,7 @@ module "service" {

If this repo is added as a subtree, then the version of the module should be close to the version shown here:

`4.1.2`
`x.y.z`

Note, however that subtrees can be altered as desired within repositories.

Expand All @@ -96,7 +96,7 @@ Below is automatically generated documentation on this Terraform module using [t

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.6.2 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.7.0 |

## Modules

Expand Down

0 comments on commit 74a0f34

Please sign in to comment.