name: CD on: push: branches: - master jobs: deploy: name: DEPLOY runs-on: ubuntu env: GITEA_CONTEXT: ${{ toJSON(gitea) }} COMMIT_SHA: ${{ gitea.event.commits[1].id }} steps: - name: Show Gitea Context run: echo "$GITEA_CONTEXT" | jq . - name: Source Code Checkout uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }} with: fetch-depth: 0 fetch-tags: true - name: Get Commit Tag id: commit run: echo "tag=$(git describe --contains ${{ env.COMMIT_SHA }})" >> $GITEA_OUTPUT - name: Show Tag run: echo "${{ steps.commit.outputs.tag }}"