Skip to content

Commit

Permalink
fix: update release CI (#148)
Browse files Browse the repository at this point in the history
<!--
  ~ Copyright 2023 StreamNative, Inc.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
-->

<!--
### Contribution Checklist

- Fill out the template below to describe the changes contributed by the
pull request. That will give reviewers the context they need to do the
review.
  
- Each pull request should address only one issue, not mix up code from
multiple issues.
  
  - Each commit in the pull request has a meaningful commit message

- Once all items of the checklist are addressed, remove the above text
and this checklist, leaving only the filled out template below.

**(The sections below can be removed for hotfixes of typos)**
-->

### Motivation

The latest PR didn't trigger the release CI:
https://github.com/streamnative/terraform-aws-cloud/actions/runs/12012425712/job/33483611868

### Modifications

- Migrate to `googleapis/release-please-action@v4` from deprecated
`google-github-actions/release-please-action@v4`

### Verifying this change

Similar to
https://github.com/streamnative/terraform-managed-cloud/blob/main/.github/workflows/release.yaml

### Documentation

- [x] `no-need-doc`
  • Loading branch information
maxsxu authored Nov 27, 2024
1 parent 7bbcbae commit d2f67da
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
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 }}
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{".":"4.1.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 d2f67da

Please sign in to comment.