From 88e7d362178b7731be86866b720216bb00f0c768 Mon Sep 17 00:00:00 2001 From: phoenix <85183285+PhoenixOrigin@users.noreply.github.com> Date: Fri, 26 Jan 2024 18:27:47 +0000 Subject: [PATCH 01/24] Create id.yml --- .github/workflows/id.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/id.yml diff --git a/.github/workflows/id.yml b/.github/workflows/id.yml new file mode 100644 index 000000000..848c7cbf8 --- /dev/null +++ b/.github/workflows/id.yml @@ -0,0 +1,23 @@ +name: ID_ADDER +on: [pull_request] + +jobs: + id: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + - id: files + uses: jitterbit/get-changed-files@v1 + with: + format: 'space-delimited' + - uses: phoenixorigin/id_script@v0.1.17 + with: + files: ${{ steps.files.outputs.all }} + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_user_name: 'GitHub Actions' + commit_user_email: 'actions@github.co' + commit_message: 'chore: update user id' From 105e5d1c1f2f09a51e291e4b39184d7f0c4792ed Mon Sep 17 00:00:00 2001 From: phoenix <85183285+PhoenixOrigin@users.noreply.github.com> Date: Fri, 26 Jan 2024 18:31:21 +0000 Subject: [PATCH 02/24] Update id.yml --- .github/workflows/id.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/id.yml b/.github/workflows/id.yml index 848c7cbf8..8f0ef2e62 100644 --- a/.github/workflows/id.yml +++ b/.github/workflows/id.yml @@ -13,7 +13,7 @@ jobs: uses: jitterbit/get-changed-files@v1 with: format: 'space-delimited' - - uses: phoenixorigin/id_script@v0.1.17 + - uses: is-a-dev/id_script@v1.0 with: files: ${{ steps.files.outputs.all }} - uses: stefanzweifel/git-auto-commit-action@v4 From 6e91fe0817ea77ccb9fa89500238f255a375ea5e Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 27 Jan 2024 08:51:21 +0800 Subject: [PATCH 03/24] Update and rename id.yml to github-id.yml --- .github/workflows/github-id.yml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/id.yml | 23 ----------------------- 2 files changed, 32 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/github-id.yml delete mode 100644 .github/workflows/id.yml diff --git a/.github/workflows/github-id.yml b/.github/workflows/github-id.yml new file mode 100644 index 000000000..61083a8c0 --- /dev/null +++ b/.github/workflows/github-id.yml @@ -0,0 +1,32 @@ +name: GitHub ID + +on: + pull_request: + branches: [main] + +jobs: + update: + name: Update + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - id: Get changed files + uses: jitterbit/get-changed-files@v1 + with: + format: "space-delimited" + + - name: Run script + uses: is-a-dev/github-id-script@v1 + with: + files: ${{ steps.files.outputs.all }} + + - name: Commit + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_user_name: "GitHub Actions" + commit_user_email: "actions@github.com" + commit_message: "chore: add github user id" diff --git a/.github/workflows/id.yml b/.github/workflows/id.yml deleted file mode 100644 index 8f0ef2e62..000000000 --- a/.github/workflows/id.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: ID_ADDER -on: [pull_request] - -jobs: - id: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} - - id: files - uses: jitterbit/get-changed-files@v1 - with: - format: 'space-delimited' - - uses: is-a-dev/id_script@v1.0 - with: - files: ${{ steps.files.outputs.all }} - - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_user_name: 'GitHub Actions' - commit_user_email: 'actions@github.co' - commit_message: 'chore: update user id' From 8a5a8c03dc937ef71820282f56af102e346534c7 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 27 Jan 2024 08:54:02 +0800 Subject: [PATCH 04/24] Update github-id.yml --- .github/workflows/github-id.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-id.yml b/.github/workflows/github-id.yml index 61083a8c0..f5696f9b6 100644 --- a/.github/workflows/github-id.yml +++ b/.github/workflows/github-id.yml @@ -14,7 +14,8 @@ jobs: with: fetch-depth: 0 - - id: Get changed files + - name: Get changed files + id: files uses: jitterbit/get-changed-files@v1 with: format: "space-delimited" From 0539db8de4a3a68e418f7888ecc721ddf93f8f0e Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 27 Jan 2024 09:03:35 +0800 Subject: [PATCH 05/24] Update github-id.yml --- .github/workflows/github-id.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-id.yml b/.github/workflows/github-id.yml index f5696f9b6..1ef288d7c 100644 --- a/.github/workflows/github-id.yml +++ b/.github/workflows/github-id.yml @@ -21,7 +21,7 @@ jobs: format: "space-delimited" - name: Run script - uses: is-a-dev/github-id-script@v1 + uses: is-a-dev/github-id-script@latest with: files: ${{ steps.files.outputs.all }} From 8d869b74ef09d11c2d74995c5197c016171ade27 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 27 Jan 2024 09:04:43 +0800 Subject: [PATCH 06/24] Update github-id.yml --- .github/workflows/github-id.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-id.yml b/.github/workflows/github-id.yml index 1ef288d7c..01b007a9f 100644 --- a/.github/workflows/github-id.yml +++ b/.github/workflows/github-id.yml @@ -21,7 +21,7 @@ jobs: format: "space-delimited" - name: Run script - uses: is-a-dev/github-id-script@latest + uses: is-a-dev/github-id-script@v1.0.0 with: files: ${{ steps.files.outputs.all }} From a0d43d93dc0b7fec287cc42a07ee4b41ea9110b5 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 27 Jan 2024 09:05:23 +0800 Subject: [PATCH 07/24] Update github-id.yml --- .github/workflows/github-id.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/github-id.yml b/.github/workflows/github-id.yml index 01b007a9f..a0c7e53c7 100644 --- a/.github/workflows/github-id.yml +++ b/.github/workflows/github-id.yml @@ -13,6 +13,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} - name: Get changed files id: files From 252747167cd63954da657b25dd22a79fc1c08746 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 27 Jan 2024 09:06:26 +0800 Subject: [PATCH 08/24] Create test.json --- domains/test.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 domains/test.json diff --git a/domains/test.json b/domains/test.json new file mode 100644 index 000000000..0a51a1e9a --- /dev/null +++ b/domains/test.json @@ -0,0 +1,10 @@ +{ + "owner": { + "username": "wdhdev", + "email": "william@williamharrison.dev" + }, + + "record": { + "CNAME": "wdhdns.com" + } +} From 83dfc7ce2ad041284f80d6dd79cc73d6aedc4676 Mon Sep 17 00:00:00 2001 From: phoenix <85183285+PhoenixOrigin@users.noreply.github.com> Date: Sat, 27 Jan 2024 10:10:27 +0000 Subject: [PATCH 09/24] Update test.json --- domains/test.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/domains/test.json b/domains/test.json index 0a51a1e9a..dd2e70f90 100644 --- a/domains/test.json +++ b/domains/test.json @@ -5,6 +5,7 @@ }, "record": { - "CNAME": "wdhdns.com" + "CNAME": "wdhdns.com", + "TXT": "what the fu k have you done" } } From 661bb42f17065053b07d3b9f4ace13b5c3d9ea2a Mon Sep 17 00:00:00 2001 From: phoenix <85183285+PhoenixOrigin@users.noreply.github.com> Date: Sat, 27 Jan 2024 10:15:05 +0000 Subject: [PATCH 10/24] Update github-id.yml --- .github/workflows/github-id.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/github-id.yml b/.github/workflows/github-id.yml index a0c7e53c7..c4971afde 100644 --- a/.github/workflows/github-id.yml +++ b/.github/workflows/github-id.yml @@ -32,3 +32,4 @@ jobs: commit_user_name: "GitHub Actions" commit_user_email: "actions@github.com" commit_message: "chore: add github user id" + skip_checkout: true From 92e9630334e1784136c977f6292f7abd96aaa773 Mon Sep 17 00:00:00 2001 From: phoenix <85183285+PhoenixOrigin@users.noreply.github.com> Date: Sat, 27 Jan 2024 10:30:27 +0000 Subject: [PATCH 11/24] Update github-id.yml --- .github/workflows/github-id.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/github-id.yml b/.github/workflows/github-id.yml index c4971afde..78a59e786 100644 --- a/.github/workflows/github-id.yml +++ b/.github/workflows/github-id.yml @@ -14,6 +14,9 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.GITHUB_TOKEN }} + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.head_ref }} + - name: Get changed files id: files @@ -33,3 +36,4 @@ jobs: commit_user_email: "actions@github.com" commit_message: "chore: add github user id" skip_checkout: true + From 6a41dd6a93f8fdeac0246cb4dfbbc24099336d8b Mon Sep 17 00:00:00 2001 From: phoenix <85183285+PhoenixOrigin@users.noreply.github.com> Date: Sat, 27 Jan 2024 10:32:56 +0000 Subject: [PATCH 12/24] Update github-id.yml --- .github/workflows/github-id.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/github-id.yml b/.github/workflows/github-id.yml index 78a59e786..5cfa69dec 100644 --- a/.github/workflows/github-id.yml +++ b/.github/workflows/github-id.yml @@ -1,8 +1,7 @@ name: GitHub ID on: - pull_request: - branches: [main] + pull_request_target: jobs: update: From 2ac1d4eb95b5a8472500a2666ce6997f6f024266 Mon Sep 17 00:00:00 2001 From: phoenix <85183285+PhoenixOrigin@users.noreply.github.com> Date: Sat, 27 Jan 2024 10:33:35 +0000 Subject: [PATCH 13/24] Update github-id.yml --- .github/workflows/github-id.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/github-id.yml b/.github/workflows/github-id.yml index 5cfa69dec..427168acf 100644 --- a/.github/workflows/github-id.yml +++ b/.github/workflows/github-id.yml @@ -2,6 +2,7 @@ name: GitHub ID on: pull_request_target: + pull_request: jobs: update: From 4986ca3cbb686145ced0eb49ea9f3f6277ad2d00 Mon Sep 17 00:00:00 2001 From: phoenix <85183285+PhoenixOrigin@users.noreply.github.com> Date: Sat, 27 Jan 2024 10:35:02 +0000 Subject: [PATCH 14/24] Update github-id.yml --- .github/workflows/github-id.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-id.yml b/.github/workflows/github-id.yml index 427168acf..1bc6deae1 100644 --- a/.github/workflows/github-id.yml +++ b/.github/workflows/github-id.yml @@ -1,8 +1,8 @@ name: GitHub ID on: - pull_request_target: - pull_request: + push: + branches: [main] jobs: update: From a3743ceb084648554eaa3ba67e420a8ee971901a Mon Sep 17 00:00:00 2001 From: phoenix <85183285+PhoenixOrigin@users.noreply.github.com> Date: Sat, 27 Jan 2024 10:36:07 +0000 Subject: [PATCH 15/24] Update test.json --- domains/test.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/domains/test.json b/domains/test.json index dd2e70f90..0a51a1e9a 100644 --- a/domains/test.json +++ b/domains/test.json @@ -5,7 +5,6 @@ }, "record": { - "CNAME": "wdhdns.com", - "TXT": "what the fu k have you done" + "CNAME": "wdhdns.com" } } From 73eb2ee23f0feedafe26cc8ddbadb8467c19109a Mon Sep 17 00:00:00 2001 From: PhoenixOrigin Date: Sat, 27 Jan 2024 10:36:27 +0000 Subject: [PATCH 16/24] chore: add github user id --- domains/test.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/domains/test.json b/domains/test.json index 0a51a1e9a..a8d932cf5 100644 --- a/domains/test.json +++ b/domains/test.json @@ -1,10 +1,10 @@ { "owner": { "username": "wdhdev", - "email": "william@williamharrison.dev" + "email": "william@williamharrison.dev", + "github_id": 87287585 }, - "record": { "CNAME": "wdhdns.com" } -} +} \ No newline at end of file From 9b892f604c70defe720c8d7d135fdbe867a7259b Mon Sep 17 00:00:00 2001 From: phoenix <85183285+PhoenixOrigin@users.noreply.github.com> Date: Sat, 27 Jan 2024 10:43:11 +0000 Subject: [PATCH 17/24] Update github-id.yml --- .github/workflows/github-id.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/github-id.yml b/.github/workflows/github-id.yml index 1bc6deae1..7237009dc 100644 --- a/.github/workflows/github-id.yml +++ b/.github/workflows/github-id.yml @@ -1,8 +1,7 @@ name: GitHub ID on: - push: - branches: [main] + push jobs: update: From d347417bcbbaf6d06f699d90cafb6221782cabba Mon Sep 17 00:00:00 2001 From: phoenix <85183285+PhoenixOrigin@users.noreply.github.com> Date: Sat, 27 Jan 2024 10:43:54 +0000 Subject: [PATCH 18/24] Delete domains/test.json --- domains/test.json | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 domains/test.json diff --git a/domains/test.json b/domains/test.json deleted file mode 100644 index a8d932cf5..000000000 --- a/domains/test.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "owner": { - "username": "wdhdev", - "email": "william@williamharrison.dev", - "github_id": 87287585 - }, - "record": { - "CNAME": "wdhdns.com" - } -} \ No newline at end of file From 0f22cb81679013f43f780ec973f4b1582802d2a9 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 27 Jan 2024 18:44:13 +0800 Subject: [PATCH 19/24] Update github-id.yml --- .github/workflows/github-id.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-id.yml b/.github/workflows/github-id.yml index 7237009dc..4297c69b5 100644 --- a/.github/workflows/github-id.yml +++ b/.github/workflows/github-id.yml @@ -1,7 +1,9 @@ name: GitHub ID on: - push + push: + paths: + - "domains/*.json" jobs: update: From a70b6a74e3eec0644979a02cf512493b00cf880d Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 27 Jan 2024 18:44:38 +0800 Subject: [PATCH 20/24] Update github-id.yml --- .github/workflows/github-id.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/github-id.yml b/.github/workflows/github-id.yml index 4297c69b5..9e0ffe551 100644 --- a/.github/workflows/github-id.yml +++ b/.github/workflows/github-id.yml @@ -18,7 +18,6 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.head_ref }} - - name: Get changed files id: files uses: jitterbit/get-changed-files@v1 From 5be82697761d0cb2c00a49ddb50be0ef008e0192 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 27 Jan 2024 18:48:40 +0800 Subject: [PATCH 21/24] Create test.json --- domains/test.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 domains/test.json diff --git a/domains/test.json b/domains/test.json new file mode 100644 index 000000000..1c0b61f79 --- /dev/null +++ b/domains/test.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "wdhdev", + "email": "william@williamharrison.dev" + }, + "record": { + "CNAME": "wdhdns.com" + } +} From 1cc1d823df3a0a6f9750d792fb9f0a8431fe8bd3 Mon Sep 17 00:00:00 2001 From: wdhdev Date: Sat, 27 Jan 2024 10:48:58 +0000 Subject: [PATCH 22/24] chore: add github user id --- domains/test.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/domains/test.json b/domains/test.json index 1c0b61f79..a8d932cf5 100644 --- a/domains/test.json +++ b/domains/test.json @@ -1,9 +1,10 @@ { "owner": { "username": "wdhdev", - "email": "william@williamharrison.dev" + "email": "william@williamharrison.dev", + "github_id": 87287585 }, "record": { "CNAME": "wdhdns.com" } -} +} \ No newline at end of file From db38ea7bd080e0e8a24db76017b0487c0da21819 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 27 Jan 2024 18:49:17 +0800 Subject: [PATCH 23/24] Discard changes to domains/test.json --- domains/test.json | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 domains/test.json diff --git a/domains/test.json b/domains/test.json deleted file mode 100644 index a8d932cf5..000000000 --- a/domains/test.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "owner": { - "username": "wdhdev", - "email": "william@williamharrison.dev", - "github_id": 87287585 - }, - "record": { - "CNAME": "wdhdns.com" - } -} \ No newline at end of file From 2306e54fbc2d1428e5491b029ad3876ef9c05248 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 27 Jan 2024 18:50:32 +0800 Subject: [PATCH 24/24] Update github-id.yml --- .github/workflows/github-id.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/github-id.yml b/.github/workflows/github-id.yml index 9e0ffe551..150ddb77e 100644 --- a/.github/workflows/github-id.yml +++ b/.github/workflows/github-id.yml @@ -36,4 +36,3 @@ jobs: commit_user_email: "actions@github.com" commit_message: "chore: add github user id" skip_checkout: true -