Updated swagger docs (#308) #7
Workflow file for this run
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: Generate API | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Get latest tag | |
id: get_tag | |
run: echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV | |
- name: Set output | |
id: set_output | |
run: echo "::set-output name=tag::${{ env.LATEST_TAG }}" | |
- name: Request to API wrapper | |
run: | | |
curl -X POST \ | |
-d '{ "event_type": "tag_created", "client_payload": { "tag": "${{ steps.set_output.outputs.tag }}"}}' \ | |
-H "Content-Type: application/json" \ | |
-H "Authorization: token ${{ secrets.PAT }}" \ | |
https://api.github.com/repos/celenium-io/celenium-api-go/dispatches |