diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 382515a5..791592bd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,16 +61,19 @@ jobs: if [ '${{ github.event_name }}' == 'pull_request' ]; then if [ ${{ github.event.pull_request.merged }} == true ]; then echo "version=${{ github.event.pull_request.title }}" >> $GITHUB_OUTPUT - git config --local user.email "action@github.com" - git config --local user.name "github-actions" - git tag ${{ github.event.pull_request.title }} - git push origin ${{ github.event.pull_request.title }} fi elif [[ ${{ github.event_name }} == 'push' && (${{ github.ref }} == *'alpha'* || ${{ github.ref }} == *'beta'*) ]]; then echo "version=${{ github.ref_name }}" >> $GITHUB_OUTPUT else echo "version=Test" >> $GITHUB_OUTPUT fi + - name: Create Tag + uses: rickstaa/action-create-tag@v1 + if: ${{ steps.release.outputs.release == 1 && steps.dev.outputs.dev != 1 }} + with: + tag: ${{ steps.version.outputs.version }} + message: ${{ steps.version.outputs.version }} + github_token: ${{ secrets.ACCESS_TOKEN }} - name: Check result run: | echo "release: ${{ steps.release.outputs.release }}"