diff options
author | David Timber <dxdt@dev.snart.me> | 2024-11-13 02:16:08 +0100 |
---|---|---|
committer | David Timber <dxdt@dev.snart.me> | 2024-11-13 02:33:22 +0100 |
commit | c4618105a2c3f2d12b07efa7a0a27fa908d20eee (patch) | |
tree | c3286335ec027e44476673ab1440311d70b78951 /.github | |
parent | b4a98534268fbab63f87f0eee0f826bb36dd97a2 (diff) |
Add and set up ping-he-tb
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ping-he-tb.yml | 25 | ||||
-rw-r--r-- | .github/workflows/scheduled-tasks.yml | 15 |
2 files changed, 25 insertions, 15 deletions
diff --git a/.github/workflows/ping-he-tb.yml b/.github/workflows/ping-he-tb.yml new file mode 100644 index 0000000..abb862b --- /dev/null +++ b/.github/workflows/ping-he-tb.yml @@ -0,0 +1,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 diff --git a/.github/workflows/scheduled-tasks.yml b/.github/workflows/scheduled-tasks.yml deleted file mode 100644 index 5ff2cb4..0000000 --- a/.github/workflows/scheduled-tasks.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Test -run-name: Tests -on: - schedule: - - cron: '*/5 * * * *' - workflow_dispatch: -jobs: - Do-snapshot: - name: "test" - runs-on: ubuntu-latest - steps: - # - uses: actions/checkout@v3 - - name: Run - run: | - curl http://github-actions-test.dev.snart.me/ |