Skip to content

GENESIS PT3.1~

GENESIS PT3.1~ #3

name: Email to Google Sheets
on:
issues:
types: [opened]
jobs:
add-email:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: npm install
- name: Extract email from issue
id: extract-email
run: echo "EMAIL=$(echo '${{ github.event.issue.title }}' | sed 's/New subscription: //')" >> $GITHUB_ENV

Check failure on line 25 in .github/workflows/email-to-sheets.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/email-to-sheets.yml

Invalid workflow file

You have an error in your yaml syntax on line 25
- name: Run script to add email to Google Sheets
env:
GOOGLE_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_JSON }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}
EMAIL_TO_ADD: ${{ env.EMAIL }}
run: node scripts/add-email-to-sheets.js