Skip to content

Commit

Permalink
Merge pull request #3 from PlatziDev/fix/update-author
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
JuanJTorres11 authored May 24, 2024
2 parents 4abaee0 + eab99ac commit 21f0a5f
Show file tree
Hide file tree
Showing 10 changed files with 66 additions and 104 deletions.
6 changes: 3 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/add-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/add-test-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down
67 changes: 20 additions & 47 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand All @@ -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: |
Expand All @@ -68,23 +65,23 @@ 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: |
if [[ ! -f package.json ]] || ! < package.json jq -r '.scripts | keys[]' | grep -qe '^cover$'; then
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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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'
Expand Down Expand Up @@ -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
6 changes: 3 additions & 3 deletions .github/workflows/pr-updated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
37 changes: 16 additions & 21 deletions README.ja.md
Original file line number Diff line number Diff line change
@@ -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).*

Expand Down Expand Up @@ -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)

## 使用方法
基本的な使い方
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
# ...
Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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)
Loading

0 comments on commit 21f0a5f

Please sign in to comment.