diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 56a8cec..cb1fe3f 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -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 diff --git a/release-please-config.json b/release-please-config.json index 85a64ae..4cf6afe 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -1,5 +1,6 @@ { "release-type": "simple", + "annotated-tag": true, "packages": { ".": { "package-name": "oce-lib-module-config",