git-auto-commit-action/.github/workflows/integration-tests.yml

32 lines
568 B
YAML
Raw Normal View History

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
- 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