Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/api_refs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ jobs:
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/[email protected]
name: "Trigger API references' build"
with:
Expand All @@ -19,4 +27,4 @@ jobs:
route: POST /repos/{repository}/actions/workflows/{workflow}/dispatches
inputs: '{ "version": "${{ github.ref_name }}" }'
env:
GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}