Merge pull request #85 from fernando-andutta/main #119
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: process-corpus | ||
on: | ||
repository_dispatch: | ||
types: | ||
- webhook | ||
# schedule: | ||
# - cron: "57 * * * *" | ||
workflow_dispatch: {} | ||
push: | ||
paths: | ||
- .github/workflows/processor.yml | ||
- ./process.js | ||
jobs: | ||
process: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup deno | ||
uses: denoland/setup-deno@main | ||
with: | ||
deno-version: v1.28.x | ||
- name: Check out repo | ||
uses: actions/checkout@v3 | ||
- name: Create Log Directory | ||
run: mkdir -p logs | ||
- name: Run Corpus Processor | ||
run: deno task process | ||
- name: Set Date Environment Variable | ||
id: date | ||
run: echo "title='Automatic Corpus Processing: $(date +'%Y-%m-%d')'" >> $GITHUB_OUTPUT | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
title: ${{ env.title }} | ||
branch: corpus-update |