Skip to content

Commit

Permalink
docs: simplify usage section, add branch comment in examples, add ver…
Browse files Browse the repository at this point in the history
…sion pinning
  • Loading branch information
SamyDjemai committed Oct 21, 2022
1 parent 70608e3 commit acff2d0
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 20 deletions.
28 changes: 16 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,26 @@ The following [reusable workflows](https://docs.github.com/en/actions/using-work

To use these workflows in your project, copy files from the folders listed below, and paste them in the `.github/workflows/` folder in your own repo.

- `global`: `release`, `semantic-check`
- Sets up Release Please and semantic-check, for standardized commits and automated releases
- `terraform`: `terraform-quality`, `terraform-docs`
- Sets up automated Terraform code quality and security checks, as well as `terraform-docs` for automated documentation updating
- [`global`](global/): for all your projects
- [`terraform`](terraform/): useful for Terraform modules and starters

Your repo should have the following structure:

```
.github
| workflows
| | terraform-quality.yml
| | terraform-docs.yml
| | ... (other workflows)
main.tf
README.md
... (other files)
.
├── .github
│ ├── CODEOWNERS
│ └── workflows
│ ├── release.yml
│ ├── semantic-check.yml
│ ├── terraform-docs.yml
│ └── terraform-quality.yml
├── .gitignore
├── LICENSE
├── main.tf
├── README.md
├── renovate.json
└── ... (other files)
```

## Workflow Designs
Expand Down
5 changes: 3 additions & 2 deletions global/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
on:
push:
branches:
- main
- main # your trunk branch

name: release
jobs:
release:
uses: padok-team/github-workflows/.github/workflows/release.yml@main
uses: padok-team/github-workflows/.github/workflows/release.yml@v1
5 changes: 3 additions & 2 deletions global/semantic-check.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
on:
pull_request:
branches:
- main
- main # your trunk branch

name: semantic-check
jobs:
semantic-check:
uses: padok-team/github-workflows/.github/workflows/semantic-check.yml@main
uses: padok-team/github-workflows/.github/workflows/semantic-check.yml@v1
5 changes: 3 additions & 2 deletions terraform/terraform-docs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
on:
push:
branches:
- main
- main # your trunk branch

name: terraform-docs
jobs:
terraform-docs:
uses: padok-team/github-workflows/.github/workflows/terraform-docs.yml@main
uses: padok-team/github-workflows/.github/workflows/terraform-docs.yml@v1
5 changes: 3 additions & 2 deletions terraform/terraform-quality.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
on:
pull_request:
branches:
- main
- main # your trunk branch

name: terraform-quality
jobs:
terraform-quality:
uses: padok-team/github-workflows/.github/workflows/terraform-quality.yml@main
uses: padok-team/github-workflows/.github/workflows/terraform-quality.yml@v1

0 comments on commit acff2d0

Please sign in to comment.