2020-03-04 03:51:02 +08:00
|
|
|
name: git-auto-commit
|
|
|
|
|
2021-09-10 20:46:57 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
2020-03-04 03:51:02 +08:00
|
|
|
|
|
|
|
jobs:
|
2020-03-04 03:54:12 +08:00
|
|
|
git-auto-commit:
|
2020-03-04 03:51:02 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-10-27 01:03:57 +08:00
|
|
|
- uses: actions/checkout@v3
|
2020-03-04 03:54:12 +08:00
|
|
|
|
2020-03-04 03:51:02 +08:00
|
|
|
- name: Use git-auto-commit-action
|
2020-03-04 04:00:40 +08:00
|
|
|
id: "auto-commit-action"
|
2020-03-04 03:51:02 +08:00
|
|
|
uses: ./
|
2020-03-04 04:00:40 +08:00
|
|
|
|
2020-03-04 04:04:57 +08:00
|
|
|
- name: "no changes detected"
|
2023-01-03 15:17:32 +08:00
|
|
|
if: steps.auto-commit-action.outputs.changes_detected == 'false'
|
2020-03-04 04:04:57 +08:00
|
|
|
run: "echo \"No changes detected\""
|
|
|
|
|
|
|
|
- name: "changes detected"
|
2023-01-03 15:17:32 +08:00
|
|
|
if: steps.auto-commit-action.outputs.changes_detected == 'true'
|
2020-03-04 04:04:57 +08:00
|
|
|
run: "echo \"Changes detected\""
|