writer #18523
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: writer | |
on: | |
workflow_run: | |
workflows: ["parser"] | |
types: | |
- completed | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Write demo announcements | |
run: | | |
git show HEAD:data/results.jsonl > data/jsonl/$(git show -s --format=%cd --date=format:'%Y%m%d-%H%M%S')-$(git rev-parse HEAD).jsonl | |
- name: Remove duplicates | |
run: | | |
sudo snap install fclones | |
fclones group data/jsonl/ | fclones remove | |
- name: Commit and push | |
uses: github-actions-x/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
push-branch: 'main' | |
commit-message: 'ran writer' | |
rebase: true | |
name: 'writer' | |
files: data/jsonl/ |