Skip to content

Update data from Google Sheets #4859

Update data from Google Sheets

Update data from Google Sheets #4859

Workflow file for this run

name: Update data from Google Sheets
on:
workflow_dispatch:
schedule:
- cron: "0 2,5,8,11,14,17,20,23 * * *"
jobs:
fetch:
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y/%m/%d %H:%M')"
- name: Checkout current branch
uses: actions/checkout@v3
- name: Fetch Sheets info
uses: enstars/makotools-data-sync@main
with:
sheet-ids: ${{ secrets.SHEET_IDS }}
repo: ${{ github.repository }}
search_key: ${{ secrets.SEARCH_KEY }}
- name: Commit to current branch
id: commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Updated at ${{ steps.date.outputs.date }}