Skip to content

Commit

Permalink
node_modules ignore & separate action
Browse files Browse the repository at this point in the history
  • Loading branch information
LDannijs committed Jun 13, 2024
1 parent 23e15fe commit 54e10d0
Show file tree
Hide file tree
Showing 324 changed files with 31 additions and 23,228 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/upload-airtable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Upload to Airtable

on:
push:
branches:
- master

jobs:
csv:
name: Upload CSV to Airtable
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Node.js dependencies
run: npm ci
- name: Create templates.csv
run: node bin/csv.js
- name: Upload to Airtable
run: |
curl -X POST ${{ secrets.AIRTABLE_WEBHOOKS_API_ENDPOINT }} \
-H "Authorization: Bearer ${{ secrets.AIRTABLE_WEBHOOKS_API_KEY }}" \
-H "Content-Type: text/csv" \
--data-binary "@bin/templates.csv"
23 changes: 1 addition & 22 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,4 @@ jobs:
cd schema
go build -o ../bin/validate ./cmd/validate.go
- name: Validate webhook templates
run: ./bin/validate
csv:
if: github.ref == 'refs/heads/master'
name: Upload CSV to Airtable
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Node.js dependencies
run: npm ci
- name: Create templates.csv
run: node bin/csv.js
- name: Upload to Airtable
run: |
curl -X POST ${{ secrets.AIRTABLE_WEBHOOKS_API_ENDPOINT }} \
-H "Authorization: Bearer ${{ secrets.AIRTABLE_WEBHOOKS_API_KEY }}" \
-H "Content-Type: text/csv" \
--data-binary "@bin/templates.csv"
run: ./bin/validate
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
bin/templates.csv
bin/templates.csv
bin/node_modules
1 change: 0 additions & 1 deletion bin/node_modules/.bin/yaml

This file was deleted.

58 changes: 0 additions & 58 deletions bin/node_modules/.package-lock.json

This file was deleted.

58 changes: 0 additions & 58 deletions bin/node_modules/csv-writer/CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 54e10d0

Please sign in to comment.