-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (43 loc) · 1.22 KB
/
new-contribution.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: New Contribution
on:
workflow_dispatch:
inputs:
contribution_name:
description: "Name for the contribution"
required: true
type: string
contribution_url:
description: "Link to the contribution"
required: true
type: string
contribution_date:
description: "When contribution took place (YYYY-MM-DD)"
required: true
type: string
contribution_author:
description: "Supernova that authored contribution"
required: true
type: string
repository_dispatch:
types: [manual-update]
jobs:
update-file:
runs-on: ubuntu-latest
env:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
steps:
- name: Debug PERSONAL_ACCESS_TOKEN
env:
ACTIONS_STEP_DEBUG: true
run: echo $PERSONAL_ACCESS_TOKEN
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '14.x'
- name: Install dependencies
run: npm install @actions/core @actions/github
- name: Run update-contributions.js
run: |
node .github/scripts/update-contributions.js "$PERSONAL_ACCESS_TOKEN"