-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 998 Bytes
/
api_refs.yaml
File metadata and controls
30 lines (27 loc) · 998 Bytes
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
name: 'API References'
on:
push:
tags:
- 'v*'
jobs:
trigger-api-refs-build:
name: 'Build API References'
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.AUTOMATION_CLIENT_ID }}
private-key: ${{ secrets.AUTOMATION_CLIENT_SECRET }}
owner: ${{ github.repository_owner }}
- uses: octokit/request-action@v2.x
name: "Trigger API references' build"
with:
repository: ibexa/documentation-developer
workflow: 'api_refs.yaml'
ref: '!!str 5.0'
route: POST /repos/{repository}/actions/workflows/{workflow}/dispatches
inputs: '{ "version": "${{ github.ref_name }}" }'
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}