mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-12-06 02:09:04 +00:00
32 lines
568 B
YAML
32 lines
568 B
YAML
name: Integration Tests
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
test-commit-works:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
ref: master
|
|
|
|
- name: Create Remote Branch
|
|
run: |
|
|
git checkout -b ci-test
|
|
git push origin ci-test
|
|
git checkout master
|
|
|
|
- name: Add Files
|
|
run: touch {a,b,c}.txt
|
|
|
|
- name: Run git-auto-commit
|
|
id: "auto-commit-action"
|
|
uses: ./
|
|
with:
|
|
branch: ci-test
|
|
commit_message: Message
|
|
|
|
- name: Delete Branch
|
|
run: git push -d origin ci-test
|