Release Auction REST API #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Auction REST API | |
on: | |
workflow_run: | |
workflows: [ Build Spring Boot Project ] | |
types: | |
- completed | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release: | |
name: Release Auction REST API | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Get version | |
id: get_version | |
run: | | |
chmod +x get_version.sh | |
echo "version=$(./get_version.sh)" >> $GITHUB_OUTPUT | |
- name: Release Auction REST API | |
uses: softprops/[email protected] | |
with: | |
name: 'Auction REST API - v${{ steps.get_version.outputs.version }}' | |
tag_name: ${{ steps.get_version.outputs.version }} | |
generate_release_notes: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |