Skip to content

Commit

Permalink
fix(tools): path to release script (#2588)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpanot authored Dec 13, 2024
2 parents 681ec8b + 63b95b3 commit 5835ff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/github-actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ runs:
- name: Previous release tag
if: ${{(!contains( inputs.version, '-' )) && endsWith( inputs.version, '.0' )}}
shell: bash
run: echo "PREVIOUS_VERSION_TAG=$(gh release list --exclude-drafts --exclude-pre-releases --limit ${{ inputs.previousVersionsLimit }} --json tagName --template '[{{range .}}"{{.tagName}}",{{end}}""]{{"\n"}}' | node '${GITHUB_ACTION_PATH}/packaged-action/index.cjs' previous-version ${{ inputs.version }})" >> $GITHUB_ENV
run: echo "PREVIOUS_VERSION_TAG=$(gh release list --exclude-drafts --exclude-pre-releases --limit ${{ inputs.previousVersionsLimit }} --json tagName --template '[{{range .}}"{{.tagName}}",{{end}}""]{{"\n"}}' | node "${GITHUB_ACTION_PATH}/packaged-action/index.cjs" previous-version ${{ inputs.version }})" >> $GITHUB_ENV
- name: Determine if latest tag
if: ${{(!contains( inputs.version, '-' ))}}
shell: bash
run: echo "IS_LATEST_TAG=$(gh release list --exclude-drafts --exclude-pre-releases --limit ${{ inputs.previousVersionsLimit }} --json tagName --template '[{{range .}}"{{.tagName}}",{{end}}""]{{"\n"}}' | node '${GITHUB_ACTION_PATH}/packaged-action/index.cjs' is-latest ${{ inputs.version }})" >> $GITHUB_ENV
run: echo "IS_LATEST_TAG=$(gh release list --exclude-drafts --exclude-pre-releases --limit ${{ inputs.previousVersionsLimit }} --json tagName --template '[{{range .}}"{{.tagName}}",{{end}}""]{{"\n"}}' | node "${GITHUB_ACTION_PATH}/packaged-action/index.cjs" is-latest ${{ inputs.version }})" >> $GITHUB_ENV
- name: Create release
shell: bash
run: gh release create v${{ inputs.version }} --generate-notes ${{ contains( inputs.version, '-' ) && '--prerelease' || '' }} --target ${{ inputs.target }} --latest=${{env.IS_LATEST_TAG != '' && env.IS_LATEST_TAG || 'false'}} ${{ env.PREVIOUS_VERSION_TAG != '' && format('--notes-start-tag {0}', env.PREVIOUS_VERSION_TAG) || '' }}

0 comments on commit 5835ff0

Please sign in to comment.