File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Add PR to project board
2+
3+ on :
4+ pull_request_target :
5+ types : [opened, reopened, ready_for_review]
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ add-to-project :
12+ name : add to project board
13+ runs-on : ubuntu-latest
14+ if : github.event.pull_request.draft == false
15+ steps :
16+ # NOTE: do NOT add an actions/checkout step here. This workflow uses
17+ # pull_request_target (which has access to secrets) but must never
18+ # execute code from the fork branch. See open-telemetry/opentelemetry-python#4955 for context.
19+ - uses : actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
20+ id : otelbot-token
21+ with :
22+ app-id : ${{ vars.OTELBOT_PYTHON_APP_ID }}
23+ private-key : ${{ secrets.OTELBOT_PYTHON_PRIVATE_KEY }}
24+
25+ - uses : actions/add-to-project@v1.0.2
26+ with :
27+ project-url : https://github.com/orgs/open-telemetry/projects/88
28+ github-token : ${{ steps.otelbot-token.outputs.token }}
You can’t perform that action at this time.
0 commit comments