Skip to content

Commit

Permalink
Merge pull request #78 from qclaogui:qc-owl-app
Browse files Browse the repository at this point in the history
Add 🤖QC Owl App[bot] support
  • Loading branch information
qclaogui committed Mar 29, 2024
2 parents f3fd3bd + 88fd93a commit e6ae98a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup-identity/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ inputs:
name:
description: "Git config name"
required: false
default: "🤖GitHub Actions[Bot]"
default: "🤖QC Owl App[bot]"
email:
description: "Git config email"
required: false
default: "41898282+github-actions[bot]@users.noreply.github.com"
default: "165384878+qc-owl-app[bot]@users.noreply.github.com"
outputs: {}
runs:
using: "composite"
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ on:

jobs:
update_release_draft:
name: Trigger a draft release update
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "main"
- 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: ${{ secrets.QCBOT_TOKEN }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
with:
commitish: main

Expand All @@ -31,15 +31,13 @@ jobs:
- name: Upsert Pull Request
uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e #v6.0.2
with:
token: ${{ secrets.QCBOT_TOKEN }}
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: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
committer: 🤖QC Owl App[bot] <165384878+qc-owl-app[bot]@users.noreply.github.com>
signoff: true
# author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
assignees: qclaogui
# reviewers: qclaogui
reviewers: qclaogui
body: |
🤖 Copy release notes from Draft
Expand Down

0 comments on commit e6ae98a

Please sign in to comment.