summaryrefslogtreecommitdiff
path: root/.github/workflows/ping-he-tb.yml
blob: abb862b8a61164fe48a4a224a650a8c19fd20e53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: ping-he-tb
run-name: ping-he-tb
on:
  schedule:
    - cron: '*/5 * * * *'
  workflow_dispatch:
jobs:
  Do-snapshot:
    name: "ping-he-tb"
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          ref: 'data'
      - name: Run ping-he-tb
        run: |
          mkdir -p ping-data
          ./ping-he-tb | tee "ping-data/$(date -uIns)"
      - name: Do commit
        run: |
          git config --global user.name 'Snapshot Automation Bot'
          git config --global user.email '_@users.noreply.github.com'
          git add ping-he-tb
          git commit -sm 'ping-data commit'
          git push