From 81e28f7bd2e44a6d5bddd970baab38d8a33bc98f Mon Sep 17 00:00:00 2001 From: supertree-wook Date: Mon, 8 May 2023 15:27:35 +0900 Subject: [PATCH 01/10] Update github action --- .github/workflows/calibreapp-image-actions.yml | 4 ++-- .../comment-links-to-changed-games-in-pull-requests.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/calibreapp-image-actions.yml b/.github/workflows/calibreapp-image-actions.yml index 04a3a0dea..5708fefdf 100644 --- a/.github/workflows/calibreapp-image-actions.yml +++ b/.github/workflows/calibreapp-image-actions.yml @@ -35,7 +35,7 @@ jobs: github.event.pull_request.head.repo.full_name == github.repository) steps: - name: Checkout Branch - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Compress Images id: calibre uses: calibreapp/image-actions@main @@ -48,7 +48,7 @@ jobs: if: | github.event_name != 'pull_request' && steps.calibre.outputs.markdown != '' - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@v5 with: title: Auto Compress Images branch-suffix: timestamp diff --git a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml index 0d61b96e1..d4d23b179 100644 --- a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml +++ b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml @@ -11,7 +11,7 @@ jobs: - name: Get changed files id: changed-game-files - uses: tj-actions/changed-files@v23.1 + uses: tj-actions/changed-files@v35 with: files: | examples/**/*.json @@ -42,7 +42,7 @@ jobs: body-includes: "### Preview the game(s) changed or added in this Pull Request" - name: Create or update comment - uses: peter-evans/create-or-update-comment@v2 + uses: peter-evans/create-or-update-comment@v3 with: comment-id: ${{ steps.fc.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} From 8a141aa9fc5443591f7aa9b9dcd2681b08fd5b14 Mon Sep 17 00:00:00 2001 From: supertree-wook Date: Mon, 8 May 2023 15:29:06 +0900 Subject: [PATCH 02/10] Fix deprecate --- .../comment-links-to-changed-games-in-pull-requests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml index d4d23b179..463e95bdd 100644 --- a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml +++ b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml @@ -31,7 +31,7 @@ jobs: CHANGED_GAMES_LINKS="${CHANGED_GAMES_LINKS//$'\n'/'%0A'}" CHANGED_GAMES_LINKS="${CHANGED_GAMES_LINKS//$'\r'/'%0D'}" - echo "::set-output name=changed-games-links::$CHANGED_GAMES_LINKS" + echo "changed-games-links=$CHANGED_GAMES_LINKS" >> $GITHUB_OUTPUT - name: Find the existing comment about games in the PR uses: peter-evans/find-comment@v2 From 7612c2eb08b4bfbfdc44aae2a900965c4c871ab1 Mon Sep 17 00:00:00 2001 From: supertree-wook Date: Mon, 8 May 2023 17:30:52 +0900 Subject: [PATCH 03/10] Add build run condition --- .../comment-links-to-changed-games-in-pull-requests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml index 463e95bdd..17e34c4c6 100644 --- a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml +++ b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml @@ -5,6 +5,8 @@ on: jobs: build: runs-on: ubuntu-latest + # Check if the event is not triggered by a fork + if: !github.event.pull_request.head.repo.fork steps: - uses: actions/checkout@v3 From 51d1e2dd2e0e6653affa5475f37bbdbd245d73d7 Mon Sep 17 00:00:00 2001 From: supertree-wook Date: Mon, 8 May 2023 17:33:59 +0900 Subject: [PATCH 04/10] Revert "Add build run condition" This reverts commit 7612c2eb08b4bfbfdc44aae2a900965c4c871ab1. --- .../comment-links-to-changed-games-in-pull-requests.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml index 17e34c4c6..463e95bdd 100644 --- a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml +++ b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml @@ -5,8 +5,6 @@ on: jobs: build: runs-on: ubuntu-latest - # Check if the event is not triggered by a fork - if: !github.event.pull_request.head.repo.fork steps: - uses: actions/checkout@v3 From 80e62d3d818d9aa4d35f5005ab8dee976e40436d Mon Sep 17 00:00:00 2001 From: supertree-wook Date: Mon, 8 May 2023 17:36:11 +0900 Subject: [PATCH 05/10] test --- .../comment-links-to-changed-games-in-pull-requests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml index 463e95bdd..8fc151b83 100644 --- a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml +++ b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml @@ -1,6 +1,7 @@ name: Comment with links to test the game(s) changed in a PR on: - pull_request: + pull_request_target: + types: [opened, synchronize, reopened, edited, ready_for_review] jobs: build: From d07fe4976fc6a887fe1770294b81b3ca5a8c9ec1 Mon Sep 17 00:00:00 2001 From: supertree-wook Date: Mon, 8 May 2023 17:39:52 +0900 Subject: [PATCH 06/10] fix --- .../comment-links-to-changed-games-in-pull-requests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml index 8fc151b83..99f4c3ee1 100644 --- a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml +++ b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml @@ -1,6 +1,6 @@ name: Comment with links to test the game(s) changed in a PR on: - pull_request_target: + pull_request: types: [opened, synchronize, reopened, edited, ready_for_review] jobs: From 1251114932103faf9ddc6e8290866370d2d90154 Mon Sep 17 00:00:00 2001 From: supertree-wook Date: Mon, 8 May 2023 17:44:43 +0900 Subject: [PATCH 07/10] test --- .../comment-links-to-changed-games-in-pull-requests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml index 99f4c3ee1..bc6060c88 100644 --- a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml +++ b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml @@ -45,6 +45,7 @@ jobs: - name: Create or update comment uses: peter-evans/create-or-update-comment@v3 with: + token: ${{ secrets.GITHUB_TOKEN }} comment-id: ${{ steps.fc.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} body: | From 5024f24b82a5853348d8070c9f55a50bf832174b Mon Sep 17 00:00:00 2001 From: supertree-wook Date: Mon, 8 May 2023 17:48:41 +0900 Subject: [PATCH 08/10] test --- .../comment-links-to-changed-games-in-pull-requests.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml index bc6060c88..8fc151b83 100644 --- a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml +++ b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml @@ -1,6 +1,6 @@ name: Comment with links to test the game(s) changed in a PR on: - pull_request: + pull_request_target: types: [opened, synchronize, reopened, edited, ready_for_review] jobs: @@ -45,7 +45,6 @@ jobs: - name: Create or update comment uses: peter-evans/create-or-update-comment@v3 with: - token: ${{ secrets.GITHUB_TOKEN }} comment-id: ${{ steps.fc.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} body: | From d6b5baca76ba9b34cb440c3862f8d53d73f08d90 Mon Sep 17 00:00:00 2001 From: supertree-wook Date: Thu, 25 May 2023 17:00:54 +0900 Subject: [PATCH 09/10] Revert "test" This reverts commit 5024f24b82a5853348d8070c9f55a50bf832174b. --- .../comment-links-to-changed-games-in-pull-requests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml index 8fc151b83..bc6060c88 100644 --- a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml +++ b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml @@ -1,6 +1,6 @@ name: Comment with links to test the game(s) changed in a PR on: - pull_request_target: + pull_request: types: [opened, synchronize, reopened, edited, ready_for_review] jobs: @@ -45,6 +45,7 @@ jobs: - name: Create or update comment uses: peter-evans/create-or-update-comment@v3 with: + token: ${{ secrets.GITHUB_TOKEN }} comment-id: ${{ steps.fc.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} body: | From 59afffed19545108a745eef08f6a3d51bc40a62f Mon Sep 17 00:00:00 2001 From: supertree-wook Date: Thu, 25 May 2023 17:01:50 +0900 Subject: [PATCH 10/10] fix --- .../comment-links-to-changed-games-in-pull-requests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml index bc6060c88..8b7f9da3d 100644 --- a/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml +++ b/.github/workflows/comment-links-to-changed-games-in-pull-requests.yml @@ -1,7 +1,6 @@ name: Comment with links to test the game(s) changed in a PR on: pull_request: - types: [opened, synchronize, reopened, edited, ready_for_review] jobs: build: