From ff28943460405cae34fdde3ffb4a59506654cd74 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sat, 17 Oct 2020 14:29:42 +0200 Subject: [PATCH 1/4] Add Integration Tests --- .github/workflows/integration-tests.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/integration-tests.yml diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml new file mode 100644 index 0000000..4dddccd --- /dev/null +++ b/.github/workflows/integration-tests.yml @@ -0,0 +1,23 @@ +name: Integration Tests + +on: push + +jobs: + tests: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + ref: master + + - name: Add Files + run: touch {a,b,c}.txt + + - name: Run git-auto-commit + id: "auto-commit-action" + uses: ./ + with: + commit_message: Message + checkout_options: -b + branch: ci-test From 2b5c86365b6cf92bb6ab76c48e82381e330abee1 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sat, 17 Oct 2020 14:46:50 +0200 Subject: [PATCH 2/4] Delete Remote Branch --- .github/workflows/integration-tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 4dddccd..8b93b90 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -21,3 +21,6 @@ jobs: commit_message: Message checkout_options: -b branch: ci-test + + - name: Delete Branch + run: git push -d origin ci-test From 55291ea168f7f68a8c454cebd44eacb8c1ae28e6 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sat, 17 Oct 2020 14:51:58 +0200 Subject: [PATCH 3/4] Rename Step --- .github/workflows/integration-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 8b93b90..08d2cb9 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -3,7 +3,7 @@ name: Integration Tests on: push jobs: - tests: + test-commit-works: runs-on: ubuntu-latest steps: @@ -18,9 +18,9 @@ jobs: id: "auto-commit-action" uses: ./ with: + branch: ci-test commit_message: Message checkout_options: -b - branch: ci-test - name: Delete Branch run: git push -d origin ci-test From 6b4ef1444cd7b233a2a698671fb86e559f85d6e7 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sat, 17 Oct 2020 14:52:58 +0200 Subject: [PATCH 4/4] Add Badge --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 9f89e7a..17d5a90 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,9 @@ + + + This GitHub Action automatically commits files which have been changed during a Workflow run and pushes the commit back to GitHub. The default committer is "GitHub Actions ", and the default author of the commit is "Your GitHub Username ".