From 59ef71e7831823fed5b9f175a9e3093b99f42258 Mon Sep 17 00:00:00 2001 From: SAITOU Keita Date: Fri, 24 May 2024 14:51:13 +0900 Subject: [PATCH 1/3] Add build step example to README --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8e28949..785f06b 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,15 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - # ... - # (snip) - # ... # Ensure you build your project before running this action + # For example, + # - uses: actions/checkout@v4 + # - uses: actions/setup-node@v4 + # with: + # node-version: 20 + # cache: 'npm' + # cache-dependency-path: subdir/package-lock.json + # - run: npm ci - name: Run esbuild run: npm run build From 769473940d336fa8b15b747016b70edb7dd73e06 Mon Sep 17 00:00:00 2001 From: exoego Date: Fri, 24 May 2024 17:41:07 +0900 Subject: [PATCH 2/3] Trigger job when PR is from fork --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e180674..cef5bc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,14 +4,14 @@ on: branches: [main] paths-ignore: - '*.md' - pull_request: + pull_request_target: branches: [main] + types: [assigned, opened, synchronize, reopened] permissions: contents: read # for checkout repository actions: read # for fetching base branch bundle stats pull-requests: write # for comments - issues: write # for comments jobs: build: From a90f66269011dd2f7b78d00a558aa0a89bf909c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TATSUNO=20=E2=80=9CTaz=E2=80=9D=20Yasuhiro?= Date: Fri, 24 May 2024 17:57:23 +0900 Subject: [PATCH 3/3] Update .github/workflows/ci.yml --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b605ea3..d24775d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,9 @@ on: branches: [main] paths-ignore: - '*.md' + pull_request: + branches: [main] + pull_request_target: branches: [main] types: [opened, edited, synchronize, reopened]