diff --git a/.github/workflows/released.yml b/.github/workflows/released.yml index bb039b1e..d7104f50 100644 --- a/.github/workflows/released.yml +++ b/.github/workflows/released.yml @@ -12,11 +12,6 @@ jobs: - uses: actions/checkout@v1 with: fetch-depth: 3 - - name: Check package version - uses: technote-space/ga-package-version-checker@test/v1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TEST_TAG_PREFIX: test/ - name: Release GitHub Actions uses: technote-space/release-github-actions@test/v1 with: diff --git a/README.ja.md b/README.ja.md index 64722441..bd2b178a 100644 --- a/README.ja.md +++ b/README.ja.md @@ -15,8 +15,8 @@ - [スクリーンショット](#%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88) - [インストール](#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB) - - [リリースプロセスで使用](#%E3%83%AA%E3%83%AA%E3%83%BC%E3%82%B9%E3%83%97%E3%83%AD%E3%82%BB%E3%82%B9%E3%81%A7%E4%BD%BF%E7%94%A8) - [プッシュ時に使用](#%E3%83%97%E3%83%83%E3%82%B7%E3%83%A5%E6%99%82%E3%81%AB%E4%BD%BF%E7%94%A8) + - [リリースプロセスで使用](#%E3%83%AA%E3%83%AA%E3%83%BC%E3%82%B9%E3%83%97%E3%83%AD%E3%82%BB%E3%82%B9%E3%81%A7%E4%BD%BF%E7%94%A8) - [オプション](#%E3%82%AA%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3) - [BRANCH_PREFIX](#branch_prefix) - [COMMIT_DISABLED](#commit_disabled) @@ -44,6 +44,28 @@ ![Updated](https://raw.githubusercontent.com/technote-space/ga-package-version-checker/images/screenshot-2.png) ## インストール +### プッシュ時に使用 + 例:`.github/workflows/check_version.yml` + ```yaml + on: push + name: Check package version + jobs: + checkVersion: + name: Check package version + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + with: + fetch-depth: 3 + + # Use this GitHub Action + - name: Check package version + uses: technote-space/ga-package-version-checker@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH_PREFIX: release/ + ``` + ### リリースプロセスで使用 例:`.github/workflows/release.yml` ```yaml @@ -80,28 +102,6 @@ args: publish ``` -### プッシュ時に使用 - 例:`.github/workflows/check_version.yml` - ```yaml - on: push - name: Check package version - jobs: - checkVersion: - name: Check package version - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 3 - - # Use this GitHub Action - - name: Check package version - uses: technote-space/ga-package-version-checker@v1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH_PREFIX: release/ - ``` - ## オプション ### BRANCH_PREFIX ブランチプリフィックス diff --git a/README.md b/README.md index b27aa894..202e50a1 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ GitHub Action to check package version before publish. - [Screenshots](#screenshots) - [Installation](#installation) - - [Used in the release process](#used-in-the-release-process) - [Used when push](#used-when-push) + - [Used in the release process](#used-in-the-release-process) - [Options](#options) - [BRANCH_PREFIX](#branch_prefix) - [COMMIT_DISABLED](#commit_disabled) @@ -44,6 +44,28 @@ GitHub Action to check package version before publish. ![Updated](https://raw.githubusercontent.com/technote-space/ga-package-version-checker/images/screenshot-2.png) ## Installation +### Used when push + e.g. `.github/workflows/check_version.yml` + ```yaml + on: push + name: Check package version + jobs: + checkVersion: + name: Check package version + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + with: + fetch-depth: 3 + + # Use this GitHub Action + - name: Check package version + uses: technote-space/ga-package-version-checker@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH_PREFIX: release/ + ``` + ### Used in the release process e.g. `.github/workflows/release.yml` ```yaml @@ -80,28 +102,6 @@ GitHub Action to check package version before publish. args: publish ``` -### Used when push - e.g. `.github/workflows/check_version.yml` - ```yaml - on: push - name: Check package version - jobs: - checkVersion: - name: Check package version - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 3 - - # Use this GitHub Action - - name: Check package version - uses: technote-space/ga-package-version-checker@v1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH_PREFIX: release/ - ``` - ## Options ### BRANCH_PREFIX Branch name prefix.