Skip to content

Commit

Permalink
ci(sync-changes-to-release-branch): use gh app creds (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumire88 authored and web-flow committed Aug 24, 2024
1 parent 2817e3e commit d40ee93
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/sync-changes-to-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
labels: branch/release
fail-fast: false
steps:
- name: Generate GitHub Auth Token
# https://github.com/tibdex/github-app-token
id: generate_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}

- uses: actions/checkout@main
with:
ref: ${{ github.event.repository.default_branch }}
Expand All @@ -38,4 +46,5 @@ jobs:
team-reviewers: ${{ env.PR_TEAM_REVIEWERS }}
title: '[cherry-pick] {old_title}'
body: 'ci: cherry picking #{old_pull_request_id} onto ${{ matrix.branch }}'

env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

0 comments on commit d40ee93

Please sign in to comment.