mirror of
https://github.com/RetroDECK/components-template.git
synced 2024-11-22 03:15:37 +00:00
26 lines
590 B
YAML
26 lines
590 B
YAML
name: "Generate a token for Rekku"
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
REKKU_PRIVATE_KEY:
|
|
required: false
|
|
type: string
|
|
|
|
jobs:
|
|
Generate-a-token-for-Rekku:
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
rekku_token: ${{ steps.generate-rekku-token.outputs.token }}
|
|
|
|
steps:
|
|
|
|
- name: Generate a token for Rekku
|
|
id: generate-rekku-token
|
|
uses: actions/create-github-app-token@v1
|
|
with:
|
|
app-id: ${{ vars.REKKU_APP_ID }}
|
|
private-key: ${{ inputs.REKKU_PRIVATE_KEY || secrets.REKKU_PRIVATE_KEY }}
|
|
owner: "RetroDECK"
|