Skip to content

Commit

Permalink
Unify to one step
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoan Nguyen committed Aug 6, 2024
1 parent 8e30999 commit 8b63dea
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Update version
- name: Update version and tagging source
if: ${{ inputs.release_version != '' }}
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
POM_FILE: './marketplace-service/pom.xml'
PACKAGE_FILE: './marketplace-ui/package.json'
run: |
xml ed -L -u "//_:project/_:version" -v "${{ inputs.release_version }}" $POM_FILE
sed -i 's/"version": "[^"]*"/"version": "${{ inputs.release_version }}"/' $PACKAGE_FILE
- name: Create release tag
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push origin :refs/tags/${{ inputs.release_version }}
git tag -d ${{ inputs.release_version }}
git tag -a ${{ inputs.release_version }} -m "Released ${{ inputs.release_version }} by ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
Expand Down

0 comments on commit 8b63dea

Please sign in to comment.