Track #36559
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: Track | |
# Controls when the workflow will run | |
on: | |
push: | |
branches: | |
- deploy | |
workflow_dispatch: | |
schedule: | |
- cron: '*/30 * * * *' # every 30min | |
jobs: | |
arweave-tracking: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: deploy | |
- uses: actions/setup-python@v3 | |
- run: pip install -r requirements.txt | |
- run: python . start_tracking --keep_tracking --keep_recent_count 2000 | |
- name: Check Git Status | |
id: status | |
run: '[[ -z $(git status -s) ]] || echo "::set-output name=status::changed"' | |
- name: Commit && Push | |
if: steps.status.outputs.status == 'changed' | |
run: | | |
git config --global user.name 'Arweave Tracker' | |
git config --global user.email '[email protected]' | |
git add . | |
git commit -am "Update data" | |
git push origin deploy | |
- name: Release feeds | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: latest | |
draft: false | |
files: "${{ env.FEED_FILES }}" | |
- name: Release metrics | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: latest | |
draft: false | |
files: "${{ env.METRIC_FILES }}" |