Skip to content

Commit

Permalink
fix: checkoutの範囲とパスの指定を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
cffnpwr committed May 2, 2024
1 parent a685873 commit 2af7f4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Get latest tag
id: latest_tag
run: |
git fetch --prune --depth=1
git fetch --prune
echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Get base version
id: base_version
run: |
echo "PREV_BASE_VERSION=$(echo ${{ github.env.LATEST_TAG }} | cut -d- -f1)" >> $GITHUB_ENV
echo "NEXT_BASE_VERSION=$(jq -r package.json '.version' | cut -d '-' -f 1)" >> $GITHUB_ENV
echo "NEXT_BASE_VERSION=$(jq -r ${{ github.workspace }}/package.json '.version' | cut -d '-' -f 1)" >> $GITHUB_ENV
- name: Reset revision
if: github.env.PREV_BASE_VERSION != github.env.NEXT_BASE_VERSION
Expand Down

0 comments on commit 2af7f4f

Please sign in to comment.