Skip to content

Commit

Permalink
ci: auto assign author and update release action (#89)
Browse files Browse the repository at this point in the history
### Modifications
- Add auto assign author job
- Use `googleapis/release-please-action@v4` since
`google-github-actions/release-please-action@v3` is deprecated
  • Loading branch information
maxsxu authored Jul 5, 2024
1 parent 409f5e5 commit 467a497
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ on:
- edited
- synchronize

permissions:
pull-requests: write

jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign@v2.1.1

title-check:
runs-on: ubuntu-latest
steps:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
- uses: googleapis/release-please-action@v4
with:
release-type: terraform-module
extra-files: |
variables.tf
token: ${{ secrets.SNBOT_GITHUB_TOKEN }}
target-branch: ${{ github.ref_name }}
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion modules/aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

variable "sn_policy_version" {
description = "The value of SNVersion tag"
default = "3.14.0" //x-release-please-version
default = "3.14.0" # x-release-please-version
type = string
}

Expand Down
11 changes: 11 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"release-type": "terraform-module",
"packages": {
".": {
"release-type": "terraform-module",
"extra-files": [
"modules/aws/variables.tf"
]
}
}
}

0 comments on commit 467a497

Please sign in to comment.