2020-10-17 20:29:42 +08:00
|
|
|
name: Integration Tests
|
|
|
|
|
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
2020-10-17 20:51:58 +08:00
|
|
|
test-commit-works:
|
2020-10-17 20:29:42 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: master
|
|
|
|
|
2020-10-23 01:52:43 +08:00
|
|
|
- name: Create Remote Branch
|
|
|
|
run: |
|
|
|
|
git checkout -b ci-test
|
|
|
|
git push origin ci-test
|
|
|
|
git checkout master
|
|
|
|
|
2020-10-17 20:29:42 +08:00
|
|
|
- name: Add Files
|
|
|
|
run: touch {a,b,c}.txt
|
|
|
|
|
|
|
|
- name: Run git-auto-commit
|
|
|
|
id: "auto-commit-action"
|
|
|
|
uses: ./
|
|
|
|
with:
|
2020-10-17 20:51:58 +08:00
|
|
|
branch: ci-test
|
2020-10-17 20:29:42 +08:00
|
|
|
commit_message: Message
|
2020-10-17 20:46:50 +08:00
|
|
|
|
|
|
|
- name: Delete Branch
|
|
|
|
run: git push -d origin ci-test
|