From bf08b20ee0b835f16ffd070c9486af690e056c5b Mon Sep 17 00:00:00 2001 From: Parlato Date: Thu, 17 Feb 2022 11:31:47 -0500 Subject: [PATCH 01/14] action --- .github/workflows/test-push-action.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test-push-action.yml diff --git a/.github/workflows/test-push-action.yml b/.github/workflows/test-push-action.yml new file mode 100644 index 0000000..9ce68ec --- /dev/null +++ b/.github/workflows/test-push-action.yml @@ -0,0 +1,26 @@ +on: [push] + +jobs: + run-unit-tests: + name: Fake action + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + - id: list-s3-dirs + shell: bash + run: | + yarn install + echo "Hello world" > test.json + - name: Commit files + run: | + git config --local user.name "github-actions" + git add ./test.json + git commit -m "Update test.json" + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} From cfd2df0bed8d4f07fbd40efe5e97af18475d85cc Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 17 Feb 2022 16:32:11 +0000 Subject: [PATCH 02/14] Update test.json --- test.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 test.json diff --git a/test.json b/test.json new file mode 100644 index 0000000..802992c --- /dev/null +++ b/test.json @@ -0,0 +1 @@ +Hello world From 9039869b7baed571aa8be531bac15f5422cc0c79 Mon Sep 17 00:00:00 2001 From: Parlato Date: Thu, 17 Feb 2022 11:34:10 -0500 Subject: [PATCH 03/14] test bad main push --- .github/workflows/test-push-action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test-push-action.yml b/.github/workflows/test-push-action.yml index 9ce68ec..f7e4e2d 100644 --- a/.github/workflows/test-push-action.yml +++ b/.github/workflows/test-push-action.yml @@ -13,7 +13,7 @@ jobs: shell: bash run: | yarn install - echo "Hello world" > test.json + echo "This will go to main" > test.json - name: Commit files run: | git config --local user.name "github-actions" @@ -23,4 +23,3 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ github.ref }} From 0a1147f5928544d1274c799c4d519db48070c310 Mon Sep 17 00:00:00 2001 From: Parlato Date: Thu, 17 Feb 2022 11:35:36 -0500 Subject: [PATCH 04/14] back to branch --- .github/workflows/test-push-action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-push-action.yml b/.github/workflows/test-push-action.yml index f7e4e2d..9ce68ec 100644 --- a/.github/workflows/test-push-action.yml +++ b/.github/workflows/test-push-action.yml @@ -13,7 +13,7 @@ jobs: shell: bash run: | yarn install - echo "This will go to main" > test.json + echo "Hello world" > test.json - name: Commit files run: | git config --local user.name "github-actions" @@ -23,3 +23,4 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} From 6448a507f6f9778eaaee132d3368fa2696c30801 Mon Sep 17 00:00:00 2001 From: Parlato Date: Thu, 17 Feb 2022 11:38:11 -0500 Subject: [PATCH 05/14] fix --- .github/workflows/test-push-action.yml | 1 - .gitignore | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.github/workflows/test-push-action.yml b/.github/workflows/test-push-action.yml index 9ce68ec..17e350e 100644 --- a/.github/workflows/test-push-action.yml +++ b/.github/workflows/test-push-action.yml @@ -12,7 +12,6 @@ jobs: - id: list-s3-dirs shell: bash run: | - yarn install echo "Hello world" > test.json - name: Commit files run: | diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..167ab9f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +yarn.lock \ No newline at end of file From 43684263991ea492de07a82efe9b802f205c3875 Mon Sep 17 00:00:00 2001 From: Parlato Date: Thu, 17 Feb 2022 11:39:07 -0500 Subject: [PATCH 06/14] change message --- .github/workflows/test-push-action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-push-action.yml b/.github/workflows/test-push-action.yml index 17e350e..5c54308 100644 --- a/.github/workflows/test-push-action.yml +++ b/.github/workflows/test-push-action.yml @@ -12,7 +12,7 @@ jobs: - id: list-s3-dirs shell: bash run: | - echo "Hello world" > test.json + echo "Change message" > test.json - name: Commit files run: | git config --local user.name "github-actions" From 15002b29a3e25e229de5d1d3173fcf8607e86d3b Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 17 Feb 2022 16:39:21 +0000 Subject: [PATCH 07/14] Update test.json --- test.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.json b/test.json index 802992c..753eed2 100644 --- a/test.json +++ b/test.json @@ -1 +1 @@ -Hello world +Change message From 7a8f5c278d37d77e0729c21f72284e06b20a63f0 Mon Sep 17 00:00:00 2001 From: Parlato Date: Thu, 17 Feb 2022 11:40:01 -0500 Subject: [PATCH 08/14] bad going to main --- .github/workflows/test-push-action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test-push-action.yml b/.github/workflows/test-push-action.yml index 5c54308..c9aef75 100644 --- a/.github/workflows/test-push-action.yml +++ b/.github/workflows/test-push-action.yml @@ -12,7 +12,7 @@ jobs: - id: list-s3-dirs shell: bash run: | - echo "Change message" > test.json + echo "This is going to main" > test.json - name: Commit files run: | git config --local user.name "github-actions" @@ -22,4 +22,3 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ github.ref }} From e7b7e7354069723fc166af7eb3fc31b8f694328f Mon Sep 17 00:00:00 2001 From: Parlato Date: Thu, 17 Feb 2022 11:41:26 -0500 Subject: [PATCH 09/14] back to branch --- .github/workflows/test-push-action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-push-action.yml b/.github/workflows/test-push-action.yml index c9aef75..17e350e 100644 --- a/.github/workflows/test-push-action.yml +++ b/.github/workflows/test-push-action.yml @@ -12,7 +12,7 @@ jobs: - id: list-s3-dirs shell: bash run: | - echo "This is going to main" > test.json + echo "Hello world" > test.json - name: Commit files run: | git config --local user.name "github-actions" @@ -22,3 +22,4 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} From b148bbf7281016b07b3c31bbf095775c90b666d2 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 17 Feb 2022 16:41:42 +0000 Subject: [PATCH 10/14] Update test.json --- test.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.json b/test.json index 753eed2..802992c 100644 --- a/test.json +++ b/test.json @@ -1 +1 @@ -Change message +Hello world From 4a15e217e245a9264c366f702881046ac0bfe2d5 Mon Sep 17 00:00:00 2001 From: Parlato Date: Thu, 17 Feb 2022 11:47:18 -0500 Subject: [PATCH 11/14] this should commit --- .github/workflows/test-push-action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-push-action.yml b/.github/workflows/test-push-action.yml index 17e350e..d894f3f 100644 --- a/.github/workflows/test-push-action.yml +++ b/.github/workflows/test-push-action.yml @@ -12,7 +12,7 @@ jobs: - id: list-s3-dirs shell: bash run: | - echo "Hello world" > test.json + echo "Whatever" > test.json - name: Commit files run: | git config --local user.name "github-actions" From 503751a7375823a51a1621a5666ea87e5051cdcc Mon Sep 17 00:00:00 2001 From: Parlato Date: Thu, 17 Feb 2022 11:48:07 -0500 Subject: [PATCH 12/14] see if working --- .github/workflows/test-push-action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-push-action.yml b/.github/workflows/test-push-action.yml index d894f3f..cb0b27f 100644 --- a/.github/workflows/test-push-action.yml +++ b/.github/workflows/test-push-action.yml @@ -17,7 +17,7 @@ jobs: run: | git config --local user.name "github-actions" git add ./test.json - git commit -m "Update test.json" + git diff-index --quiet HEAD || git commit -m "Update test.json" - name: Push changes uses: ad-m/github-push-action@master with: From 5ead9d36d0d57b202c8d51217a8f482ed571ae06 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 17 Feb 2022 16:48:36 +0000 Subject: [PATCH 13/14] Update test.json --- test.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.json b/test.json index 802992c..6c9ba53 100644 --- a/test.json +++ b/test.json @@ -1 +1 @@ -Hello world +Whatever From d53a4172d8aa2c3a9dbbffcf51fe07675bff27b3 Mon Sep 17 00:00:00 2001 From: Parlato Date: Thu, 17 Feb 2022 11:49:10 -0500 Subject: [PATCH 14/14] remove gitignore --- .gitignore | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 167ab9f..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules/ -yarn.lock \ No newline at end of file