Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
33 changes: 7 additions & 26 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,14 @@ name: Release Please
on:
push:
branches:
- main
- main
workflow_dispatch:

permissions:
contents: write
pull-requests: write
permissions: {}

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Run Release Please
id: release
uses: googleapis/release-please-action@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Convert to annotated tag
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git fetch --tags
TAG_NAME="${{ steps.release.outputs.tag_name }}"
git tag -a -f -m "Release ${TAG_NAME}" "${TAG_NAME}" "${TAG_NAME}^{commit}"
git push -f origin "${TAG_NAME}"
uses: opencoreemr/github-workflows-public/.github/workflows/release-please-reusable.yml@0.0.1
permissions:
contents: write
pull-requests: write
1 change: 1 addition & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"release-type": "simple",
"annotated-tag": true,
"packages": {
".": {
"package-name": "oce-lib-module-config",
Expand Down