From bacfbac88b93dc2df7dce2c9ef91396edb5adfe1 Mon Sep 17 00:00:00 2001 From: Pascal Zimmermann Date: Mon, 18 Apr 2022 19:06:13 +0200 Subject: [PATCH 01/11] Test --- .github/workflows/pull-request-checks-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request-checks-test.yml b/.github/workflows/pull-request-checks-test.yml index 87b1d0b..dbbb351 100644 --- a/.github/workflows/pull-request-checks-test.yml +++ b/.github/workflows/pull-request-checks-test.yml @@ -42,4 +42,4 @@ jobs: - name: Push changes uses: ad-m/github-push-action@master with: - force: true \ No newline at end of file + branch: ${{ github.head_ref }} \ No newline at end of file From 6d1e2fbcd78292975126eb71e6471e8aaf6ecf1d Mon Sep 17 00:00:00 2001 From: Pascal Zimmermann Date: Mon, 18 Apr 2022 19:06:13 +0200 Subject: [PATCH 02/11] Test --- .../workflows/pull-request-checks-test.yml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/pull-request-checks-test.yml diff --git a/.github/workflows/pull-request-checks-test.yml b/.github/workflows/pull-request-checks-test.yml new file mode 100644 index 0000000..dbbb351 --- /dev/null +++ b/.github/workflows/pull-request-checks-test.yml @@ -0,0 +1,45 @@ +name: PR checks Test + +on: + pull_request: + branches: [ main ] + +jobs: + + dummy: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ '3.x' ] + + steps: + - name: Install SSH Client + uses: webfactory/ssh-agent@v0.5.4 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + + - uses: actions/checkout@v3 + with: + ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} + + - name: "Check if coverage badge file existence" + id: check_files + uses: andstor/file-existence-action@v1 + with: + files: "docs/test.txt" + + - name: Generate file + run: touch docs/test.txt && git status + + - name: Commit files + if: steps.check_files.outputs.files_exists == 'false' + run: | + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git add --force docs + git commit -m "Add test file" + + - name: Push changes + uses: ad-m/github-push-action@master + with: + branch: ${{ github.head_ref }} \ No newline at end of file From 01218d0cb9e991605028c48478f2dea49b1b277c Mon Sep 17 00:00:00 2001 From: Pascal Zimmermann Date: Mon, 18 Apr 2022 19:51:45 +0200 Subject: [PATCH 03/11] Test it --- .github/workflows/pull-request-checks-test.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/pull-request-checks-test.yml b/.github/workflows/pull-request-checks-test.yml index dbbb351..c9d5ec3 100644 --- a/.github/workflows/pull-request-checks-test.yml +++ b/.github/workflows/pull-request-checks-test.yml @@ -13,11 +13,6 @@ jobs: python-version: [ '3.x' ] steps: - - name: Install SSH Client - uses: webfactory/ssh-agent@v0.5.4 - with: - ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - - uses: actions/checkout@v3 with: ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} From ce57ae99d36e4b57f8c8cb95748868ad9b20de9b Mon Sep 17 00:00:00 2001 From: Pascal Zimmermann Date: Mon, 18 Apr 2022 19:55:12 +0200 Subject: [PATCH 04/11] Test --- .github/workflows/pull-request-checks-test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request-checks-test.yml b/.github/workflows/pull-request-checks-test.yml index c9d5ec3..8094e3e 100644 --- a/.github/workflows/pull-request-checks-test.yml +++ b/.github/workflows/pull-request-checks-test.yml @@ -24,7 +24,7 @@ jobs: files: "docs/test.txt" - name: Generate file - run: touch docs/test.txt && git status + run: touch docs/test.txt - name: Commit files if: steps.check_files.outputs.files_exists == 'false' @@ -33,7 +33,10 @@ jobs: git config --local user.name "github-actions[bot]" git add --force docs git commit -m "Add test file" - + + - name: Push + run: git status && git push + - name: Push changes uses: ad-m/github-push-action@master with: From 38df357fbb128997f728535964c8b8d444a20873 Mon Sep 17 00:00:00 2001 From: Pascal Zimmermann Date: Mon, 18 Apr 2022 19:58:44 +0200 Subject: [PATCH 05/11] Test --- .github/workflows/pull-request-checks-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request-checks-test.yml b/.github/workflows/pull-request-checks-test.yml index 8094e3e..e669c2c 100644 --- a/.github/workflows/pull-request-checks-test.yml +++ b/.github/workflows/pull-request-checks-test.yml @@ -35,7 +35,7 @@ jobs: git commit -m "Add test file" - name: Push - run: git status && git push + run: ls -la && git status && git push - name: Push changes uses: ad-m/github-push-action@master From d9af741fbd9daaf5d26e85dd2e39405212ccda06 Mon Sep 17 00:00:00 2001 From: Pascal Zimmermann Date: Mon, 18 Apr 2022 20:00:21 +0200 Subject: [PATCH 06/11] Test --- .github/workflows/pull-request-checks-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request-checks-test.yml b/.github/workflows/pull-request-checks-test.yml index e669c2c..0b93d90 100644 --- a/.github/workflows/pull-request-checks-test.yml +++ b/.github/workflows/pull-request-checks-test.yml @@ -35,7 +35,7 @@ jobs: git commit -m "Add test file" - name: Push - run: ls -la && git status && git push + run: ls -la docs && git status - name: Push changes uses: ad-m/github-push-action@master From 2bfbdabda0c660e70f37cc1401fda364e7210eb8 Mon Sep 17 00:00:00 2001 From: Pascal Zimmermann Date: Mon, 18 Apr 2022 20:41:31 +0200 Subject: [PATCH 07/11] Test --- .github/workflows/pull-request-checks-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request-checks-test.yml b/.github/workflows/pull-request-checks-test.yml index 0b93d90..a81ff59 100644 --- a/.github/workflows/pull-request-checks-test.yml +++ b/.github/workflows/pull-request-checks-test.yml @@ -35,7 +35,7 @@ jobs: git commit -m "Add test file" - name: Push - run: ls -la docs && git status + run: ls -la docs && git status && cat .git/config - name: Push changes uses: ad-m/github-push-action@master From 1ba89136ba5c503e9e2b79f92b897b5805b65fda Mon Sep 17 00:00:00 2001 From: Pascal Zimmermann Date: Tue, 26 Apr 2022 19:13:25 +0200 Subject: [PATCH 08/11] Update .github/workflows/pull-request-checks-test.yml Co-authored-by: Adam Dobrawy --- .github/workflows/pull-request-checks-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request-checks-test.yml b/.github/workflows/pull-request-checks-test.yml index a81ff59..8c30413 100644 --- a/.github/workflows/pull-request-checks-test.yml +++ b/.github/workflows/pull-request-checks-test.yml @@ -38,6 +38,6 @@ jobs: run: ls -la docs && git status && cat .git/config - name: Push changes - uses: ad-m/github-push-action@master + uses: ad-m/github-push-action@4200574c0f7956ff32ffe9fe6de92faa3cbc9174 with: branch: ${{ github.head_ref }} \ No newline at end of file From 47ae6eb9700629a76a3e5d00d9c0b295750259e6 Mon Sep 17 00:00:00 2001 From: Pascal Zimmermann Date: Tue, 26 Apr 2022 19:44:14 +0200 Subject: [PATCH 09/11] Update pull-request-checks-test.yml --- .github/workflows/pull-request-checks-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull-request-checks-test.yml b/.github/workflows/pull-request-checks-test.yml index 8c30413..0d51620 100644 --- a/.github/workflows/pull-request-checks-test.yml +++ b/.github/workflows/pull-request-checks-test.yml @@ -40,4 +40,5 @@ jobs: - name: Push changes uses: ad-m/github-push-action@4200574c0f7956ff32ffe9fe6de92faa3cbc9174 with: - branch: ${{ github.head_ref }} \ No newline at end of file + branch: ${{ github.head_ref }} + ssh: true From 56da8684dcaaa9b0c14234b308d7aa5808ca97d5 Mon Sep 17 00:00:00 2001 From: Pascal Zimmermann Date: Tue, 26 Apr 2022 20:04:35 +0200 Subject: [PATCH 10/11] Update pull-request-checks-test.yml --- .github/workflows/pull-request-checks-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pull-request-checks-test.yml b/.github/workflows/pull-request-checks-test.yml index 0d51620..58c9e37 100644 --- a/.github/workflows/pull-request-checks-test.yml +++ b/.github/workflows/pull-request-checks-test.yml @@ -42,3 +42,4 @@ jobs: with: branch: ${{ github.head_ref }} ssh: true + force: true From b1ce7fb26d4e8bac62b86091ae7f5cb5a2ca115f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 26 Apr 2022 18:04:53 +0000 Subject: [PATCH 11/11] Add test file --- docs/test.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 docs/test.txt diff --git a/docs/test.txt b/docs/test.txt new file mode 100644 index 0000000..e69de29