Check Updates #28
This file contains 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: Check Updates | |
on: | |
workflow_dispatch: | |
inputs: | |
log: | |
description: "Commit Log" | |
required: true | |
default: "update check - tests passing" | |
schedule: | |
- cron: "0 0 * * 0-5" | |
jobs: | |
autogreen: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Pull | |
run: | | |
git config --local user.name "vtempest" | |
git config --local user.email "[email protected]" | |
git remote set-url origin https://${{ github.repository_owner }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | |
git pull --rebase | |
- name: Commit (default) | |
if: github.event.inputs.log == 0 | |
run: git commit --allow-empty -m "update check - tests passing" | |
- name: Commit (input) | |
if: github.event.inputs.log != 0 | |
run: git commit --allow-empty -m "${{ github.event.inputs.log }}" | |
- name: Push | |
run: git push |