-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.12 KB
/
access_token.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI Setup
on:
workflow_call:
inputs:
app_id:
required: true
type: string
private_key:
required: true
type: string
timeout_minutes:
required: false
type: number
default: 2
outputs:
access_token:
description: "Access token"
value: ${{ jobs.ci-setup.outputs.access_token }}
jobs:
auth:
name: Generate Access Token
runs-on: ubuntu-latest
timeout-minutes: ${{ inputs.timeout_minutes }}
outputs:
html-files: ${{ steps.html-files.outputs.files }}
access_token: ${{ steps.store_token.outputs.access_token }}
steps:
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.LF_APP_ID }}
private-key: ${{ secrets.LF_APP_PRIVATE_KEY }}
- name: Store token
- id: store_token
if: ${{ inputs.process_html_files }}
name: Search HTML files
run: |
ACCESS_TOKEN=${{ steps.generate_token.outputs.token }}
echo "access_token=ACCESS_TOKEN" >> $GITHUB_OUTPUT