-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (30 loc) · 1003 Bytes
/
resources.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
name: Resources
on: repository_dispatch
jobs:
resources:
name: Update resources
runs-on: ubuntu-latest
env:
VERSION: ${{ github.event.action }}
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Get Node.js version from .nvmrc
id: get-node-version
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: "${{ steps.get-node-version.outputs.NODE_VERSION }}"
- name: Install dependencies
run: npm install
- name: Fetch resources
run: npx tsx ./index.ts $VERSION
- name: Update resources
uses: test-room-7/action-update-file@v1
with:
file-path: resources/connectors.json
commit-msg: |
Update resources
Update connectors.json to match ${{ github.event.action }} version.
github-token: ${{ secrets.GITHUB_TOKEN }}