-
Notifications
You must be signed in to change notification settings - Fork 2
26 lines (21 loc) · 965 Bytes
/
estates.yml
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
26
# Tutorial https://sarunw.com/posts/github-actions-for-ios-projects/
# Caching https://sarunw.com/tips/caching-dependencies-in-github-actions/
name: Checking Estates
on:
workflow_dispatch:
# schedule:
# * is a special character in YAML so you have to quote this string
# - cron: '0 5-18 * * *'
jobs:
build:
name: Run
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Run Sreality Stochov
run: usr/local/bin/EstatesChecker --slack-url ${{ secrets.SLACK_WEBHOOK_ESTATES_STOCHOV }} --provider sreality --region Stochov
- name: Commit Changes
run: git config user.email "[email protected]"; git add .; if [ $((`git diff --cached --numstat | wc -l`)) -gt 0 ]; then git commit -m "Run"; fi
- name: Push
run: git push "https://${{ github.actor }}:${{ secrets.JCISLINSKY_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" HEAD:master