Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shayki5 committed Oct 1, 2023
1 parent 4393a5a commit 3e2ff69
Show file tree
Hide file tree
Showing 5 changed files with 1,058 additions and 205 deletions.
30 changes: 4 additions & 26 deletions .github/workflows/scrape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ on:
required: false
description: "Accounts to scrape (comma separated)"
daysBack:
default: "10"
default: "1"
required: false
description: "Days back to scrape"
worksheetName:
default: "auto_moneyman"
default: "current"
required: false
description: "The name of the worksheet to write to"
schedule:
- cron: "33 10 * * *"
- cron: "00 07 * * *"
env:
IMAGE_NAME: ghcr.io/${{ github.repository }}:latest
jobs:
Expand All @@ -25,28 +25,6 @@ jobs:
steps:
- name: Pull image
run: docker pull $IMAGE_NAME
# - name: Run compose
# run: docker compose up docker-compose-actions.yml logs
# env:
# DEBUG: ""
# TZ: "Asia/Jerusalem"
# DAYS_BACK: ${{ github.event.inputs.daysBack }}
# WORKSHEET_NAME: ${{ github.event.inputs.worksheetName }}
# ACCOUNTS_TO_SCRAPE: ${{ github.event.inputs.accountsToScrape }}
# ACCOUNTS_JSON: ${{ secrets.ACCOUNTS_JSON }}
# TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }}
# TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
# GOOGLE_SHEET_ID: ${{ secrets.GOOGLE_SHEET_ID }}
# GOOGLE_SERVICE_ACCOUNT_EMAIL: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_EMAIL }}
# GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY }}
# ADE_DATABASE_NAME: ${{ secrets.ADE_DATABASE_NAME }}
# ADE_TABLE_NAME: ${{ secrets.ADE_TABLE_NAME }}
# ADE_INGESTION_MAPPING: ${{ secrets.ADE_INGESTION_MAPPING }}
# ADE_INGEST_URI: ${{ secrets.ADE_INGEST_URI }}
# AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
# AZURE_APP_ID: ${{ secrets.AZURE_APP_ID }}
# AZURE_APP_KEY: ${{ secrets.AZURE_APP_KEY }}
# IMAGE_NAME: $IMAGE_NAME
- name: Run scraper
run: docker run --rm
-e DEBUG
Expand All @@ -69,7 +47,7 @@ jobs:
-e AZURE_APP_KEY
$IMAGE_NAME
env:
DEBUG: "moneyman:*"
DEBUG: ""
TZ: "Asia/Jerusalem"
DAYS_BACK: ${{ github.event.inputs.daysBack }}
WORKSHEET_NAME: ${{ github.event.inputs.worksheetName }}
Expand Down
23 changes: 0 additions & 23 deletions docker-compose-actions.yml

This file was deleted.

Loading

0 comments on commit 3e2ff69

Please sign in to comment.