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