Skip to content

feat: improve logging (#33) #23

feat: improve logging (#33)

feat: improve logging (#33) #23

on:
push:
branches: main
name: release-please
jobs:
release-please:
if: github.repository_owner == '4m-mazi'
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
tag_name: ${{ steps.release-please.outputs.tag_name }}
steps:
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.MAZI_RELEASE_APP_ID }}
private-key: ${{ secrets.MAZI_RELEASE_APP_PRIVATE_KEY }}
- uses: google-github-actions/release-please-action@cc61a07e2da466bebbc19b3a7dd01d6aecb20d1e # v4.0.2
id: release-please
with:
token: ${{ steps.generate_token.outputs.token }}
config-file: .github/files/release-please/release-please-config.json
manifest-file: .github/files/release-please/.release-please-manifest.json
skip-github-pull-request:
${{ startsWith(github.event.head_commit.message, 'release:') &&
github.event.head_commit.author.name == 'github-actions[bot]' }}
move-tags:
needs: [release-please]
if: ${{ needs.release-please.outputs.release_created }}
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
sparse-checkout: ''
sparse-checkout-cone-mode: false
fetch-tags: true
- uses: fischerscode/tagger@5ca3fa63ce3003fb7183cae547644b29f3b632be # v0.2.0
with:
prefix: v
tag: ${{ needs.release-please.outputs.tag_name }}