Skip to content

Run Shortcut to Google Sheets #201

Run Shortcut to Google Sheets

Run Shortcut to Google Sheets #201

Workflow file for this run

name: Run Shortcut to Google Sheets
on:
schedule:
- cron: '0 22 * * *' # 23:00 CET (22:00 UTC)
workflow_dispatch: # Allow manual trigger
jobs:
run-script:
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: '23.1.0'
- name: Install dependencies
run: npm install
- name: Create Google credentials file
run: echo $GOOGLE_CREDENTIALS_BASE64 | base64 --decode > google-credentials.json
env:
GOOGLE_CREDENTIALS_BASE64: ${{ secrets.GOOGLE_CREDENTIALS_BASE64 }}
- name: Compile TypeScript
run: npm run build
- name: Run script
run: node dist/script.js
env:
SHORTCUT_API_TOKEN: ${{ secrets.SHORTCUT_API_TOKEN }}
GOOGLE_SHEETS_ID: ${{ secrets.GOOGLE_SHEETS_ID }}
GOOGLE_CREDENTIALS_BASE64: ${{ secrets.GOOGLE_CREDENTIALS_BASE64 }}