Skip to content

Merge pull request #209 from qclaogui/dependabot/go_modules/google.go… #319

Merge pull request #209 from qclaogui/dependabot/go_modules/google.go…

Merge pull request #209 from qclaogui/dependabot/go_modules/google.go… #319

name: Release Drafter
on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
workflow_dispatch: {} # Allow manual triggering
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- uses: release-drafter/release-drafter@v6
id: draft
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
with:
commitish: main
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Copy release notes from Draft
run: |
tag_name=${{ steps.draft.outputs.tag_name }}
echo "${{ steps.draft.outputs.body }}" > docs/release_notes/${tag_name:1}.md
- name: Upsert Pull Request
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e #v6.0.5
with:
token: ${{ steps.app-token.outputs.token }}
title: Add release notes for ${{ steps.draft.outputs.tag_name }}
commit-message: Add release notes for ${{ steps.draft.outputs.tag_name }}
committer: 🤖QC Owl App[bot] <165384878+qc-owl-app[bot]@users.noreply.github.com>
signoff: true
# assignees: qclaogui
# reviewers: qclaogui
body: |
🤖 Copy release notes from Draft
<details>
<summary> Full draft release notes for ${{ steps.draft.outputs.tag_name }} </summary>
<blockquote>
${{ steps.draft.outputs.body }}
</blockquote>
</details>
<br />
> Auto-generated by [.github/workflows/release-drafter.yml][0]
[0]: https://github.com/qclaogui/gaip/blob/main/.github/workflows/release-drafter.yml
labels: kind/docs, skip-release-notes
branch: update-release-notes
draft: true