forked from SEACrowd/seacrowd-datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (24 loc) · 987 Bytes
/
issues-to-sheets.yml
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
xname: gsheet.action test
on:
pull_request:
types: [opened, deleted, closed, reopened]
jobs:
fetch:
runs-on: ubuntu-latest
steps:
- id: 'update_worksheet'
uses: jroehl/[email protected] # you can specify '@release' to always have the latest changes
with:
spreadsheetId: 1aIAwzMgDdXQUr2A_A_sC3ShEjQky-gYEzqB1TbPzdjA
commands: | # list of commands, specified as a valid JSON string
[
{ "command": "updateData", "args": { "worksheetTitle": "GitHub Issues Tracker", "data": [[github.event.pull_request]] }}
]
env:
GSHEET_CLIENT_EMAIL: ${{ secrets.GSHEET_CLIENT_EMAIL }}
GSHEET_PRIVATE_KEY: ${{ secrets.GSHEET_PRIVATE_KEY }}
- name: dump results
env:
# the output of the action can be found in ${{ steps.update_worksheet.outputs.results }}
RESULTS: ${{ steps.update_worksheet.outputs.results }}
run: echo "$RESULTS" | jq