-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
(cherry picked from commit 2ef32d0) Co-authored-by: Victor Martinez <[email protected]>
- Loading branch information
1 parent
4aabe6d
commit 011a3df
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,17 @@ jobs: | |
runs-on: ubuntu-latest | ||
if: github.event.label.name == 'Team:Docs' | ||
steps: | ||
- name: Get token | ||
id: get_token | ||
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 | ||
with: | ||
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }} | ||
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }} | ||
permissions: >- | ||
{ | ||
"organization_projects": "write", | ||
"issues": "read" | ||
} | ||
- uses: octokit/[email protected] | ||
id: add_to_project | ||
with: | ||
|
@@ -28,4 +39,4 @@ jobs: | |
contentid: ${{ github.event.issue.node_id }} | ||
env: | ||
PROJECT_ID: "PVT_kwDOAGc3Zs0iZw" | ||
GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }} | ||
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,18 @@ jobs: | |
name: Add issue to project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get token | ||
id: get_token | ||
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 | ||
with: | ||
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }} | ||
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }} | ||
permissions: >- | ||
{ | ||
"organization_projects": "write", | ||
"issues": "read" | ||
} | ||
- uses: actions/[email protected] | ||
with: | ||
project-url: https://github.com/orgs/elastic/projects/1286 | ||
github-token: ${{ secrets.APM_TECH_USER_TOKEN }} | ||
github-token: ${{ steps.get_token.outputs.token }} |