Skip to content

Update results

Update results #27431

name: Update results
# This workflow is triggered every hour on the half hour
on:
schedule:
- cron: '30 * * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Get new results
id: results
uses: ./.github/actions/get-new-results
with:
token: ${{ secrets.WORKFLOW_TOKEN }}
- name: Update saved data
id: update
uses: ./.github/actions/update-data
- name: Tweet interesting repos
uses: ./.github/actions/tweet-interesting-repo
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
access_token_secret: ${{ secrets.ACCESS_TOKEN_SECRET }}
consumer_key: ${{ secrets.CONSUMER_KEY }}
consumer_secret: ${{ secrets.CONSUMER_SECRET }}
faunadb_server_secret: ${{ secrets.FAUNADB_SERVER_SECRET }}
token: ${{ secrets.WORKFLOW_TOKEN }}
- name: Commit files
run: |
message=`git log -n12 --oneline|grep -c 'skip ci'| sed -e's/12//' -e 's/[0-9]\+/[skip ci]'/`
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add --all
git commit -m "Update results $message" -a || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.WORKFLOW_TOKEN }}