Last active
February 8, 2021 13:53
-
-
Save tzafrirben/83540ad9dce4abc2484f62ac891bc739 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: Water level history | |
on: | |
schedule: | |
- cron: '00 14 * * *' | |
jobs: | |
update-history: | |
runs-on: ubuntu-latest | |
name: update water level | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Download measurements | |
uses: tzafrirben/[email protected] | |
id: download_surveys | |
env: | |
DATA_GOV_RESOURCE: ${{ secrets.DATA_GOV_RESOURCE }} | |
with: | |
bb_src: 'update_surveys.bb.clj' | |
bb_args: 'docs/surveys.json' | |
- name: Print download latest surveys result | |
run: echo "babashka shell output ${{ steps.download_surveys.outputs.bb_out }}" | |
- name: Get current date | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
- name: Commit latest surveys changes | |
uses: EndBug/add-and-commit@v4 | |
with: | |
author_name: Tzafrir Ben Ami | |
author_email: [email protected] | |
message: "update surveys history daily action ${{ steps.date.outputs.date }}" | |
add: "docs/surveys.json" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment