Skip to content

Commit

Permalink
ci: update release ci token
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsxu committed Dec 17, 2024
1 parent 368d0e4 commit 45e203a
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 10 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/[email protected]

title-check:
runs-on: ubuntu-latest
steps:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ on:
permissions:
contents: write
pull-requests: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
- uses: googleapis/release-please-action@v4
with:
release-type: terraform-module
token: ${{ secrets.SNBOT_GITHUB_TOKEN }}
target-branch: ${{ github.ref_name }}
15 changes: 8 additions & 7 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "TF GH Action"
name: Terraform

on:
- pull_request

Expand All @@ -11,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Terraform
uses: hashicorp/setup-terraform@v1.3.2
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 0.15.x
terraform_version: "1.5.5"

- name: Terraform fmt
run: terraform fmt -recursive -write=false -check -diff .
Expand All @@ -27,13 +28,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
terraform_version: [1.3.x]
terraform_version: ["1.5.5"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Terraform ${{ matrix.terraform_version }}
uses: hashicorp/setup-terraform@v1.3.2
uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ matrix.terraform_version }}

Expand Down
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{".":"0.5.0"}
15 changes: 15 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"separate-pull-requests": true,
"include-component-in-tag": true,
"packages": {
".": {
"release-type": "terraform-module",
"bump-minor-pre-major": true,
"versioning": "default",
"include-component-in-tag": false,
"exclude-paths": [
".github"
]
}
}
}

0 comments on commit 45e203a

Please sign in to comment.