diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 2e2bf3cd..5c5ca509 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1,7 +1,7 @@ # Contributing -[issues]: https://github.com/technote-space/get-diff-action/issues -[fork]: https://github.com/technote-space/get-diff-action/fork -[pr]: https://github.com/technote-space/get-diff-action/compare +[issues]: https://github.com/PlatziDev/get-diff-action/issues +[fork]: https://github.com/PlatziDev/get-diff-action/fork +[pr]: https://github.com/PlatziDev/get-diff-action/compare [eslint]: https://eslint.org/ [jest]: https://jestjs.io/ [code-of-conduct]: CODE_OF_CONDUCT.md diff --git a/.github/workflows/add-release-tag.yml b/.github/workflows/add-release-tag.yml index 3c119d51..b2650725 100644 --- a/.github/workflows/add-release-tag.yml +++ b/.github/workflows/add-release-tag.yml @@ -32,7 +32,7 @@ jobs: env: HEAD_REF: ${{ github.head_ref }} if: startsWith(github.head_ref, 'release/v') - - uses: actions/github-script@v3 + - uses: actions/github-script@v7 with: github-token: ${{ secrets.ACCESS_TOKEN }} script: | @@ -43,7 +43,7 @@ jobs: sha: context.sha }) if: env.NEXT_VERSION - - uses: actions/github-script@v3 + - uses: actions/github-script@v7 with: github-token: ${{ secrets.ACCESS_TOKEN }} script: | diff --git a/.github/workflows/add-test-tag.yml b/.github/workflows/add-test-tag.yml index b192d2ca..89473bac 100644 --- a/.github/workflows/add-test-tag.yml +++ b/.github/workflows/add-test-tag.yml @@ -18,7 +18,7 @@ jobs: with: CONFIG_FILENAME: workflow-settings.json, workflow-details.json IGNORE_WARNING: 'true' - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: technote-space/get-git-comment-action@v1 - name: Get version uses: technote-space/get-next-version-action@v1 @@ -36,7 +36,7 @@ jobs: HEAD_REF: ${{ github.head_ref }} RUN_ID: ${{ github.run_id }} if: env.NEXT_VERSION - - uses: actions/github-script@v3 + - uses: actions/github-script@v7 with: github-token: ${{ secrets.ACCESS_TOKEN }} script: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d343495f..d980b80b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,9 +15,9 @@ jobs: steps: - name: Set running flag run: echo "RUNNING=1" >> $GITHUB_ENV - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: technote-space/get-git-comment-action@v1 - - uses: technote-space/get-diff-action@gh-actions + - uses: technote-space/get-diff-action@v6.1.2 with: PATTERNS: +(src|__tests__)/**/*.+(js|ts) FILES: | @@ -28,9 +28,9 @@ jobs: run: echo "RUNNING=" >> $GITHUB_ENV if: "! env.GIT_DIFF" - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 cache: yarn if: env.RUNNING - name: Install Package dependencies @@ -46,17 +46,14 @@ jobs: cover: name: Coverage needs: eslint - runs-on: ${{matrix.os}} + runs-on: ubuntu-latest timeout-minutes: 10 - strategy: - matrix: - os: [ubuntu-20.04, ubuntu-22.04, ubuntu-latest, macos-latest] steps: - name: Set running flag run: echo "RUNNING=1" >> $GITHUB_ENV - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: technote-space/get-git-comment-action@v1 - - uses: technote-space/get-diff-action@gh-actions + - uses: technote-space/get-diff-action@v6.1.2 with: PATTERNS: +(src|__tests__)/**/*.+(js|ts|snap) FILES: | @@ -68,13 +65,13 @@ jobs: run: echo "RUNNING=" >> $GITHUB_ENV if: "! env.GIT_DIFF" - name: Set running flag - if: "matrix.os == 'ubuntu-latest' && ! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)" + if: "! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)" run: echo "RUNNING=1" >> $GITHUB_ENV - name: Set running flag - if: "matrix.os == 'ubuntu-latest' && ! startsWith(github.ref, 'refs/tags/') && startsWith(github.base_ref, 'refs/heads/develop/v')" + if: "! startsWith(github.ref, 'refs/tags/') && startsWith(github.base_ref, 'refs/heads/develop/v')" run: echo "RUNNING=1" >> $GITHUB_ENV - name: Set running flag - if: matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') run: echo "RUNNING=1" >> $GITHUB_ENV - name: Set running flag run: | @@ -82,9 +79,9 @@ jobs: echo "RUNNING=" >> $GITHUB_ENV fi - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 cache: yarn if: env.RUNNING - name: Install Package dependencies @@ -101,7 +98,6 @@ jobs: env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} COVERAGE_FILE: ./coverage/lcov.info - if: env.RUNNING && matrix.os == 'ubuntu-latest' release: name: Release GitHub Actions @@ -110,10 +106,10 @@ jobs: timeout-minutes: 5 if: startsWith(github.ref, 'refs/tags/') steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 cache: yarn - uses: technote-space/load-config-action@v1 @@ -148,7 +144,7 @@ jobs: fi env: NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: env.RUNNING - name: Check package version uses: technote-space/package-version-check-action@v1 @@ -170,16 +166,16 @@ jobs: if: env.RUNNING && matrix.target == 'gpr' - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: https://registry.npmjs.org/ cache: yarn if: env.RUNNING && matrix.target == 'npm' - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: https://npm.pkg.github.com cache: yarn if: env.RUNNING && matrix.target == 'gpr' @@ -217,29 +213,6 @@ jobs: id: drafter uses: technote-space/release-drafter@v6 with: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} DRAFT: false NAME: ${{ env.TAG_NAME }} TAG: ${{ env.TAG_NAME }} - - uses: 8398a7/action-slack@v3 - with: - status: ${{ job.status }} - text: ${{ format('<{0}>', steps.drafter.outputs.html_url) }} - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: success() && env.SLACK_WEBHOOK_URL - - slack: - name: Slack - needs: publishRelease - runs-on: ubuntu-latest - timeout-minutes: 3 - if: always() - steps: - - uses: technote-space/workflow-conclusion-action@v3 - - uses: 8398a7/action-slack@v3 - with: - status: failure - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: env.WORKFLOW_CONCLUSION == 'failure' && env.SLACK_WEBHOOK_URL diff --git a/.github/workflows/pr-updated.yml b/.github/workflows/pr-updated.yml index ee4f5fdd..32bcc6a8 100644 --- a/.github/workflows/pr-updated.yml +++ b/.github/workflows/pr-updated.yml @@ -12,7 +12,7 @@ jobs: timeout-minutes: 3 if: "! startsWith(github.head_ref, 'release/')" steps: - - uses: actions/labeler@v2 + - uses: actions/labeler@v5 with: repo-token: ${{ secrets.GITHUB_TOKEN }} @@ -61,7 +61,7 @@ jobs: IGNORE_WARNING: 'true' - name: Set running flag run: echo "RUNNING=1" >> $GITHUB_ENV - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - name: Set running flag @@ -107,7 +107,7 @@ jobs: env: NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} if: env.RUNNING diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml index 6b85b1cd..f6abefae 100644 --- a/.github/workflows/toc.yml +++ b/.github/workflows/toc.yml @@ -20,7 +20,6 @@ jobs: IGNORE_WARNING: 'true' - uses: technote-space/toc-generator@v4 with: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} TARGET_BRANCH_PREFIX: ${{ env.BRANCH_PREFIX }} FOLDING: ${{ env.TOC_FOLDING }} MAX_HEADER_LEVEL: ${{ env.TOC_MAX_HEADER_LEVEL }} diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index 9ad2f7d3..2718aa7b 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -51,7 +51,7 @@ jobs: - name: Set running flag run: echo "RUNNING2=1" >> $GITHUB_ENV if: env.RUNNING1 && steps.update_deps.outputs.result != 'succeeded' && github.event_name == 'pull_request' && github.event.action != 'closed' && startsWith(github.head_ref, 'release/') - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: env.RUNNING2 - name: Set running flag run: | diff --git a/README.ja.md b/README.ja.md index 3bd20f56..12487b9e 100644 --- a/README.ja.md +++ b/README.ja.md @@ -1,9 +1,9 @@ # Get Diff Action -[![CI Status](https://github.com/technote-space/get-diff-action/workflows/CI/badge.svg)](https://github.com/technote-space/get-diff-action/actions) -[![codecov](https://codecov.io/gh/technote-space/get-diff-action/branch/main/graph/badge.svg)](https://codecov.io/gh/technote-space/get-diff-action) -[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/get-diff-action/badge)](https://www.codefactor.io/repository/github/technote-space/get-diff-action) -[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/get-diff-action/blob/main/LICENSE) +[![CI Status](https://github.com/PlatziDev/get-diff-action/workflows/CI/badge.svg)](https://github.com/PlatziDev/get-diff-action/actions) +[![codecov](https://codecov.io/gh/PlatziDev/get-diff-action/branch/main/graph/badge.svg)](https://codecov.io/gh/PlatziDev/get-diff-action) +[![CodeFactor](https://www.codefactor.io/repository/github/PlatziDev/get-diff-action/badge)](https://www.codefactor.io/repository/github/PlatziDev/get-diff-action) +[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/PlatziDev/get-diff-action/blob/main/LICENSE) *Read this in other languages: [English](README.md), [日本語](README.ja.md).* @@ -41,10 +41,10 @@ env または actionsの出力 から差分を得ることができます。 ## スクリーンショット 1. Workflow の例 - ![Example workflow](https://raw.githubusercontent.com/technote-space/get-diff-action/images/workflow.png) + ![Example workflow](https://raw.githubusercontent.com/PlatziDev/get-diff-action/images/workflow.png) 1. スキップ - ![Skip](https://raw.githubusercontent.com/technote-space/get-diff-action/images/skip.png) + ![Skip](https://raw.githubusercontent.com/PlatziDev/get-diff-action/images/skip.png) ## 使用方法 基本的な使い方 @@ -56,8 +56,8 @@ jobs: name: ESLint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: technote-space/get-diff-action@v6 + - uses: actions/checkout@v4 + - uses: PlatziDev/get-diff-action@v0.1.0 with: PATTERNS: | +(src|__tests__)/**/*.ts @@ -105,8 +105,8 @@ jobs: name: ESLint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: technote-space/get-diff-action@v6 + - uses: actions/checkout@v4 + - uses: PlatziDev/get-diff-action@v0.1.0 with: PATTERNS: | +(src|__tests__)/**/*.ts @@ -243,8 +243,8 @@ jobs: name: ESLint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: technote-space/get-diff-action@v6 + - uses: actions/checkout@v4 + - uses: PlatziDev/get-diff-action@v0.1.0 with: CHECK_ONLY_COMMIT_WHEN_DRAFT: true # ... @@ -259,8 +259,8 @@ jobs: name: Dump runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: technote-space/get-diff-action@v6 + - uses: actions/checkout@v4 + - uses: PlatziDev/get-diff-action@v0.1.0 with: PATTERNS: | +(src|__tests__)/**/*.ts @@ -291,8 +291,8 @@ jobs: name: Dump runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: technote-space/get-diff-action@v6 + - uses: actions/checkout@v4 + - uses: PlatziDev/get-diff-action@v0.1.0 with: PATTERNS: '*.ts' RELATIVE: 'src/abc' @@ -305,8 +305,3 @@ jobs: > Run echo 'test1.ts' 'test2.ts' test1.ts test2.ts ``` - -## Author -[GitHub (Technote)](https://github.com/technote-space) - -[Blog](https://technote.space) diff --git a/README.md b/README.md index d1ab583b..86dec801 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Get Diff Action -[![CI Status](https://github.com/technote-space/get-diff-action/workflows/CI/badge.svg)](https://github.com/technote-space/get-diff-action/actions) -[![codecov](https://codecov.io/gh/technote-space/get-diff-action/branch/main/graph/badge.svg)](https://codecov.io/gh/technote-space/get-diff-action) -[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/get-diff-action/badge)](https://www.codefactor.io/repository/github/technote-space/get-diff-action) -[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/get-diff-action/blob/main/LICENSE) +[![CI Status](https://github.com/PlatziDev/get-diff-action/workflows/CI/badge.svg)](https://github.com/PlatziDev/get-diff-action/actions) +[![codecov](https://codecov.io/gh/PlatziDev/get-diff-action/branch/main/graph/badge.svg)](https://codecov.io/gh/PlatziDev/get-diff-action) +[![CodeFactor](https://www.codefactor.io/repository/github/PlatziDev/get-diff-action/badge)](https://www.codefactor.io/repository/github/PlatziDev/get-diff-action) +[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/PlatziDev/get-diff-action/blob/main/LICENSE) *Read this in other languages: [English](README.md), [日本語](README.ja.md).* @@ -41,10 +41,10 @@ You can get the differences via env or action output. ## Screenshots 1. Example workflow - ![Example workflow](https://raw.githubusercontent.com/technote-space/get-diff-action/images/workflow.png) + ![Example workflow](https://raw.githubusercontent.com/PlatziDev/get-diff-action/images/workflow.png) 1. Skip - ![Skip](https://raw.githubusercontent.com/technote-space/get-diff-action/images/skip.png) + ![Skip](https://raw.githubusercontent.com/PlatziDev/get-diff-action/images/skip.png) ## Usage Basic Usage @@ -56,8 +56,8 @@ jobs: name: ESLint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: technote-space/get-diff-action@v6 + - uses: actions/checkout@v4 + - uses: PlatziDev/get-diff-action@v0.1.0 with: PATTERNS: | +(src|__tests__)/**/*.ts @@ -105,8 +105,8 @@ jobs: name: ESLint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: technote-space/get-diff-action@v6 + - uses: actions/checkout@v4 + - uses: PlatziDev/get-diff-action@v0.1.0 with: PATTERNS: | +(src|__tests__)/**/*.ts @@ -243,8 +243,8 @@ jobs: name: ESLint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: technote-space/get-diff-action@v6 + - uses: actions/checkout@v4 + - uses: PlatziDev/get-diff-action@v0.1.0 with: CHECK_ONLY_COMMIT_WHEN_DRAFT: true # ... @@ -259,8 +259,8 @@ jobs: name: Dump runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: technote-space/get-diff-action@v6 + - uses: actions/checkout@v4 + - uses: PlatziDev/get-diff-action@v0.1.0 with: PATTERNS: | +(src|__tests__)/**/*.ts @@ -291,8 +291,8 @@ jobs: name: Dump runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: technote-space/get-diff-action@v6 + - uses: actions/checkout@v4 + - uses: PlatziDev/get-diff-action@v0.1.0 with: PATTERNS: '*.ts' RELATIVE: 'src/abc' @@ -305,8 +305,3 @@ If the files `src/abc/test1.ts`, `src/abc/test2.ts`, `src/abc/test3.txt`, and `s > Run echo 'test1.ts' 'test2.ts' test1.ts test2.ts ``` - -## Author -[GitHub (Technote)](https://github.com/technote-space) - -[Blog](https://technote.space) diff --git a/package.json b/package.json index 99732163..6ffc9eea 100644 --- a/package.json +++ b/package.json @@ -6,13 +6,13 @@ "github", "github actions" ], - "homepage": "https://github.com/technote-space/get-diff-action", + "homepage": "https://github.com/PlatziDev/get-diff-action", "bugs": { - "url": "https://github.com/technote-space/get-diff-action/issues" + "url": "https://github.com/PlatziDev/get-diff-action/issues" }, "repository": { "type": "git", - "url": "https://github.com/technote-space/get-diff-action.git" + "url": "https://github.com/PlatziDev/get-diff-action.git" }, "license": "MIT", "author": {