Skip to content

Commit

Permalink
Update action.yml (#95)
Browse files Browse the repository at this point in the history
* Update action.yml

Update the cmd that fetched the latest tag

* Update action.yml

* Update action.yml

fix format

* Update action.yml

Add id

* Update action.yml

update the id to the current

* Update action.yml

remove uses: checkout v2

* Add shell: bash
  • Loading branch information
AlexandrosMor authored Jan 30, 2024
1 parent deb4a70 commit 32d6456
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:
ref: ${{ inputs.develop-branch }}
- name: Grab current version
id: current-version
run: echo "current-version=$(git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//')" >> $GITHUB_OUTPUT
run: echo "current-version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
shell: bash
- name: Prepare release request
id: release
Expand All @@ -54,10 +54,6 @@ runs:
INPUT_SEPARATOR: ${{ inputs.separator }}
INPUT_DEVELOP-BRANCH: ${{ inputs.develop-branch }}
INPUT_CURRENT-VERSION: ${{ steps.current-version.outputs.current-version }}
- name: Bump
run: |
perl -i -pe 's/${{steps.current-version.outputs.current-version}}/${{steps.release.outputs.next-version}}/' VERSION ${{ inputs.version-files }}
shell: bash
- name: Create Pull Request
if: steps.release.outputs.next-version != steps.current-version.outputs.current-version
id: cpr
Expand Down Expand Up @@ -110,4 +106,4 @@ runs:
echo "- Current version: ${{steps.current-version.outputs.current-version}}" >> $GITHUB_STEP_SUMMARY
echo "- Next version: ${{steps.release.outputs.next-version}}" >> $GITHUB_STEP_SUMMARY
echo "- Release pull request: ${{ steps.cpr.outputs.pull-request-number }}" >> $GITHUB_STEP_SUMMARY
echo "- Github release: ${{ steps.gh-release.outputs.result }}" >> $GITHUB_STEP_SUMMARY
echo "- Github release: ${{ steps.gh-release.outputs.result }}" >> $GITHUB_STEP_SUMMARY

0 comments on commit 32d6456

Please sign in to comment.