name: Release Please on: push: branches: [stable] permissions: contents: write pull-requests: write jobs: release-please: runs-on: ubuntu-latest outputs: release_created: ${{ steps.release.outputs.release_created }} tag_name: ${{ steps.release.outputs.tag_name }} version: ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} steps: - name: Run Release Please uses: googleapis/release-please-action@v4 id: release with: token: ${{ secrets.GITHUB_TOKEN }} config-file: release-please-config.json manifest-file: .release-please-manifest.json - name: Output Release Info if: ${{ steps.release.outputs.release_created }} run: | echo "## Release Created! " >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "**Tag:** ${{ steps.release.outputs.tag_name }}" >> $GITHUB_STEP_SUMMARY echo "**Version:** ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "Docker images will be built and tagged with this version." >> $GITHUB_STEP_SUMMARY # Best-effort "What's New" highlights on the freshly-created release. Runs in # this same workflow run (not a `release:` trigger) because release-please # creates the release with GITHUB_TOKEN, which never starts new workflow runs. whatsnew: needs: release-please if: ${{ needs.release-please.outputs.release_created }} permissions: contents: write # edit the release body models: read # GitHub Models (free tier) uses: ./.github/workflows/whatsnew-highlights.yml with: tag: ${{ needs.release-please.outputs.tag_name }}