mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
91b8f85788
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 6.0.3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...df4cb1c069e1874edd31b4311f1884172cec0e10) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
37 lines
1.4 KiB
YAML
37 lines
1.4 KiB
YAML
name: GH - Cherry-pick
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [closed, labeled]
|
|
|
|
jobs:
|
|
cherry-pick:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- id: app-token
|
|
name: Generate app token
|
|
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v2
|
|
if: ${{ env.GH_APP_ID != '' }}
|
|
with:
|
|
client-id: ${{ secrets.GH_APP_ID }}
|
|
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
|
|
env:
|
|
GH_APP_ID: ${{ secrets.GH_APP_ID }}
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v5
|
|
if: ${{ steps.app-token.outcome != 'skipped' }}
|
|
with:
|
|
fetch-depth: 0
|
|
token: "${{ steps.app-token.outputs.token }}"
|
|
- id: get-user-id
|
|
if: ${{ steps.app-token.outcome != 'skipped' }}
|
|
name: Get GitHub app user ID
|
|
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
|
|
env:
|
|
GH_TOKEN: "${{ steps.app-token.outputs.token }}"
|
|
- uses: ./.github/actions/cherry-pick
|
|
if: ${{ steps.app-token.outcome != 'skipped' }}
|
|
with:
|
|
token: ${{ steps.app-token.outputs.token }}
|
|
git_user: ${{ steps.app-token.outputs.app-slug }}[bot]
|
|
git_user_email: '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
|