Skip to content

Commit 94d6d6e

Browse files
committed
fix
1 parent 79afeee commit 94d6d6e

File tree

6 files changed

+56
-14
lines changed

6 files changed

+56
-14
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.21.0"
3+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"release-type": "go",
4+
"bump-minor-pre-major": true,
5+
"versioning": "always-bump-minor",
6+
"group-pull-request-title-pattern": "chore(${branch}): release ${version}",
7+
"packages": {
8+
".": {}
9+
}
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"release-type": "go",
4+
"versioning": "always-bump-patch",
5+
"group-pull-request-title-pattern": "chore(${branch}): release ${version}",
6+
"packages": {
7+
".": {}
8+
}
9+
}

.github/workflows/build-and-test.yaml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ on:
1111
push:
1212
branches:
1313
- main
14-
- release/[0-9]+.[0-9]+.[0-9]+
15-
release:
16-
types:
17-
- created
14+
- "release/**"
1815
jobs:
1916
ccc:
2017
runs-on: ubuntu-latest
@@ -241,13 +238,14 @@ jobs:
241238
runs-on: ubuntu-22.04
242239
if: ${{ !cancelled() }}
243240
steps:
244-
- name: "Check for job failures"
245-
env:
246-
FAILURES: ${{ contains(needs.*.result, 'failure') }}
241+
242+
- name: "All jobs succeeded"
243+
id: success
244+
if: ${{ contains(needs.*.result, 'success') }}
245+
run: |
246+
:
247+
248+
- name: "One or more jobs failed"
249+
if: ${{ contains(needs.*.result, 'failure') }}
247250
run: |
248-
if [[ "$FAILURES" == "true" ]]; then
249-
echo "One or more jobs failed, exiting with error."
250-
exit 1
251-
else
252-
echo "All jobs succeeded"
253-
fi
251+
exit 1

.github/workflows/deliver.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ on:
44
push:
55
branches:
66
- main
7-
- release/[0-9]+.[0-9]+.[0-9]+
7+
- "release/**"
8+
release:
9+
types:
10+
- created
811

912
# Default empty permissions for all jobs
1013
permissions: {}

.github/workflows/release.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- "release/**"
8+
9+
permissions: {}
10+
11+
jobs:
12+
release-please:
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
uses: opentdf/platform/.github/workflows/reusable_release-please.yaml@main
17+
secrets:
18+
APP_ID: ${{ secrets.APP_ID }}
19+
AUTOMATION_KEY: ${{ secrets.AUTOMATION_KEY }}

0 commit comments

Comments
 (0)