Skip to content

Commit

Permalink
PR dashboard automation #2 (#1437)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliagsy authored Jun 14, 2022
1 parent cd79859 commit c49f4ac
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/dashboard_logging_automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ jobs:
with:
path: ivy
persist-credentials: false
- name: Generate Token
id: generate_token
uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0
with:
app_id: ${{ secrets.PR_APP_ID }}
private_key: ${{ secrets.PR_APP_PEM }}
- name: Get Project Data
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
ORGANIZATION: unifyai
PROJECT_NUMBER: 1
run: |
Expand All @@ -42,7 +48,7 @@ jobs:
- name: Add PR to project
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
PR_ID: ${{ github.event.pull_request.node_id }}
run: |
item_id="$( gh api graphql -f query='
Expand All @@ -58,7 +64,7 @@ jobs:
- name: Set fields
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
gh api graphql -f query='
mutation (
Expand Down

0 comments on commit c49f4ac

Please sign in to comment.