2020-03-03 19:51:02 +00:00
|
|
|
name: git-auto-commit
|
|
|
|
|
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
2020-03-03 19:54:12 +00:00
|
|
|
git-auto-commit:
|
2020-03-03 19:51:02 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-03-03 19:54:12 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2020-03-03 19:51:02 +00:00
|
|
|
- name: Use git-auto-commit-action
|
2020-03-03 20:00:40 +00:00
|
|
|
id: "auto-commit-action"
|
2020-03-03 19:51:02 +00:00
|
|
|
uses: ./
|
2020-03-03 20:00:40 +00:00
|
|
|
|
2020-03-03 20:04:57 +00:00
|
|
|
- name: "no changes detected"
|
|
|
|
if: steps.auto-commit-action.outputs.changes_detected == false
|
|
|
|
run: "echo \"No changes detected\""
|
|
|
|
|
|
|
|
- name: "changes detected"
|
|
|
|
if: steps.auto-commit-action.outputs.changes_detected == true
|
|
|
|
run: "echo \"Changes detected\""
|