diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index f61cc89..9c616a6 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,22 +1,28 @@ -name: Release Please - on: push: branches: - main - +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +name: release-please jobs: - release: - name: Run release-please + release-please: runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 + # See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow + # For why we need to generate a token and not use the default + - name: Generate token + id: generate_token + uses: tibdex/github-app-token@v2 + with: + app_id: ${{ secrets.CZI_RELEASE_PLEASE_APP_ID }} + private_key: ${{ secrets.CZI_RELEASE_PLEASE_PK }} - - name: Run release-please - uses: google-github-actions/release-please-action@v3 - with: - release-type: python - token: ${{ secrets.GITHUB_TOKEN }} - bump-minor-pre-major: true \ No newline at end of file + - name: release please + uses: googleapis/release-please-action@v4 + id: release + with: + release-type: python + token: ${{ steps.generate_token.outputs.token }} + bump-minor-pre-major: true \ No newline at end of file