Merge pull request #172 from maze88/main #5
Workflow file for this run
This file contains hidden or 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: Tag to API Version | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| jobs: | |
| tag_api_version: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Get version tag | |
| id: get_tag | |
| run: | | |
| TAG="${GITHUB_REF##*/}" # Extracts the tag (v1.2.3) | |
| echo "tag: $TAG" | |
| echo "::set-output name=tag::$TAG" | |
| - name: Create API tag | |
| run: | | |
| API_TAG="api/${{ steps.get_tag.outputs.tag }}" | |
| echo "API tag: $API_TAG" | |
| git tag "$API_TAG" | |
| - name: Push API tag | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| API_TAG="api/${{ steps.get_tag.outputs.tag }}" | |
| git push origin "$API_TAG" |