Repository navigation
46 lines (42 loc) · 1.7 KB
/
Copy pathteam-memory-post-merge.yml
File metadata and controls
46 lines (42 loc) · 1.7 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Queue IssueLens Team Memory (opt-in)
on:
push:
branches: [main]
permissions: {}
jobs:
team-memory:
if: >-
vars.ISSUELENS_TEAM_MEMORY_ENABLED == 'true' &&
github.repository == 'microsoft/java-debug' &&
github.ref == format('refs/heads/{0}', github.event.repository.default_branch) &&
github.event_name == 'push' &&
github.workflow_sha == github.sha &&
github.event.created == false &&
github.event.deleted == false &&
github.event.forced == false
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Create coordinator dispatch token
id: dispatch-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
client-id: ${{ vars.ISSUELENS_DISPATCH_APP_CLIENT_ID }}
private-key: ${{ secrets.ISSUELENS_DISPATCH_APP_PRIVATE_KEY }}
owner: microsoft
repositories: vscode-java-pack
permission-contents: read
permission-actions: write
- name: Queue team-memory request
uses: microsoft/IssueLens/.github/actions/queue-team-memory@a81d2d96167fc0e69ac631c2edc85f858e693289
with:
dispatch-token: ${{ steps.dispatch-token.outputs.token }}
coordinator-repository: microsoft/vscode-java-pack
coordinator-workflow: team-memory-coordinator.yml
coordinator-ref: main
workflow-inputs: >-
{"source_repository":"${{ github.repository }}",
"source_run_id":"${{ github.run_id }}",
"source_run_attempt":"${{ github.run_attempt }}",
"push_before":"${{ github.event.before }}",
"push_after":"${{ github.sha }}"}