Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Backport merged pull request"
on:
pull_request:
types: [closed]
issue_comment:
types: [created]

# Default empty permissions for all jobs
permissions: {}

jobs:
backport:
permissions:
contents: write
pull-requests: write
id-token: write
if: |
(
github.event_name == 'pull_request' &&
github.event.pull_request.merged
) || (
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
startsWith(github.event.comment.body, '/backport')
)
uses: opentdf/platform/reusable_backport.yaml@main
15 changes: 15 additions & 0 deletions .github/workflows/create-release-branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Create Release Branch"

on:
release:
types: [released]

# Default empty permissions for all jobs
permissions: {}

jobs:
create-release-branch:
if: ${{ endsWith(github.event.release.tag_name, '.0') }}
permissions:
id-token: write
uses: opentdf/platform/reusable_create-release-branch.yaml@main
18 changes: 5 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- "release/**"
release:
types: [created]

Expand All @@ -13,19 +14,10 @@ permissions:

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@f2acddfb5195534d487896a656232b016a682f3c # v1.9.0
with:
app-id: "${{ secrets.APP_ID }}"
private-key: "${{ secrets.AUTOMATION_KEY }}"
- uses: googleapis/release-please-action@a02a34c4d625f9be7cb89156071d8567266a2445 # v4.2.0
with:
token: "${{ steps.generate_token.outputs.token }}"
config-file: release-please.json
manifest-file: .release-please-manifest.json
permissions:
contents: write
pull-requests: write
uses: opentdf/platform/reusable_release-please.yaml@main
release:
runs-on: ubuntu-latest
steps:
Expand Down
17 changes: 17 additions & 0 deletions release-please_main-branch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "maven",
"bump-minor-pre-major": true,
"separate-pull-requests": false,
"include-component-in-tag": false,
"group-pull-request-title-pattern": "chore(${branch}): release ${version}",
"packages": {
".": {}
},
"extra-files": [
{
"type": "generic",
"path": "cmdline/src/main/java/io/opentdf/platform/Command.java"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "maven",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"separate-pull-requests": false,
"include-component-in-tag": false,
Expand Down